软件安装_Python及常用模块下载安装

一、Python软件安装

当前Python大致可分为Python2.7以及Python3,如果是首次上手建议选择Python3,因为Python2.7和Python3有着不小的差别,并且Python2.7渐渐被丢弃。。。

a.下载

以下是Python官网下载地址,可以根据电脑的操作系统以及Python版本选择相应的安装软件。

https://www.python.org/downloads/

b.安装

我的电脑是Windows7 64bit,所以下载的是python-2.7.11.amd64.msipython-2.7.11.msi(后者python-2.7.11.msi是Windows 32bit版本,我安装它是因为一些项目需要,平时开发主要使用的是前者,Windows系统路径path中也是包含的前者)。

c.卸载

如果想要卸载已经安装的Python,只需要打开安装软件,比如我已经安装成功后再打开python-2.7.11.amd64.msi,则会显示以下界面,选择remove即可卸载Python。

二、Python安装及卸载module

module的安装

a.pip直接安装module

pip install XXXX

pip uninstall XXXX

ps:XXXX即模块名,比如numpy,scipy等

b.pip安装现有whl文件

pip install XXXX.whl

c.使用setup.py安装第三方提供的package

下载,解压第三方package,会发现主目录下的setup.py

先执行,python setup.py build

在执行,python setup.py install

三、常用module

a.numpy

http://www.numpy.org/

numpy is the fundamental package for scientific computing.

pip install numpy

b.scipy

https://www.scipy.org/

SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering.

pip install scipy

c.matplotlib

https://matplotlib.org/

Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms.

pip install matplotlib

d.sklearn

http://scikit-learn.org/stable/

scikit-learn(Machine learning in python)

(1)Simple and efficient tools for data mining and data analysis

(2)Accessible to everybody, and reusable in various contexts

(3)Built on NumPy, SciPy, and matplotlib

(4)Open source, commercially usable - BSD license

pip install sklearn

e.nltk

http://www.nltk.org/

NLTK is a leading platform for building Python programs to work with human language data.

pip install nltk

f.SCons

https://www.scons.org/

SCons is an Open Source software construction tool—that is, a next-generation build tool.

https://sourceforge.net/projects/scons/files/

pip install scons

g.librosa

http://librosa.github.io/librosa/

LibROSA is a python package for music and audio analysis

pip install librosa

h.pyserial

https://pypi.org/project/pyserial/

Python Serial Port Extension for Win32, OSX, Linux, BSD, Jython, IronPython

pip install pyserial

Pypi下载量 top 22


 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值