windows下python2.7版本numpy,Scipy,matplotlib,sklearn安装

时间:2023-03-09 23:47:03
windows下python2.7版本numpy,Scipy,matplotlib,sklearn安装

系统是windows32位,安装了python2.7.13。

安装顺序就是numpy,Scipy,matplotlib,sklearn。

首先是更新一下pip (确保pip能使用)

然后将setuptools, numpy, python-dateutil, pytz, pyparsing, cycler,matplotlib分别代替最后的pip并运行

PS C:\Users\wenchaoz> python -m pip install --upgrade pip
Collecting pip
Downloading pip-8.1.-py2.py3-none-any.whl (.2MB)
% |████████████████████████████████| .2MB 315kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.
Uninstalling pip-7.1.:
Successfully uninstalled pip-7.1.
Successfully installed pip-8.1. PS C:\Users\wenchaoz> python -m pip install --upgrade numpy
Collecting numpy
Downloading numpy-1.11.-cp27-none-win_amd64.whl (.4MB)
% |████████████████████████████████| .4MB 138kB/s
Installing collected packages: numpy
Found existing installation: numpy 1.9.
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future
version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.9.:
Successfully uninstalled numpy-1.9.
Successfully installed numpy-1.11. PS C:\Users\wenchaoz> python -m pip install --upgrade pytz
Collecting pytz
Downloading pytz-2016.6.-py2.py3-none-any.whl (481kB)
% |████████████████████████████████| 481kB .2MB/s
Installing collected packages: pytz
Successfully installed pytz-2016.6. PS C:\Users\wenchaoz> python -m pip install --upgrade pyparsing
Collecting pyparsing
Downloading pyparsing-2.1.-py2.py3-none-any.whl (42kB)
% |████████████████████████████████| 51kB 122kB/s
Installing collected packages: pyparsing
Successfully installed pyparsing-2.1. PS C:\Users\wenchaoz> python -m pip install --upgrade cycler
Collecting cycler
Downloading cycler-0.10.-py2.py3-none-any.whl
Requirement already up-to-date: six in c:\python27\lib\site-packages (from cycler)
Installing collected packages: cycler
Successfully installed cycler-0.10. PS C:\Users\wenchaoz> python -m pip install --upgrade matplotlib
Collecting matplotlib
Downloading matplotlib-1.5.-cp27-none-win_amd64.whl (.1MB)
% |████████████████████████████████| .1MB 167kB/s
Requirement already up-to-date: cycler in c:\python27\lib\site-packages (from matplotlib)
Requirement already up-to-date: pytz in c:\python27\lib\site-packages (from matplotlib)
Requirement already up-to-date: pyparsing!=2.0.,>=1.5. in c:\python27\lib\site-packages (from matplotlib)
Requirement already up-to-date: numpy>=1.6 in c:\python27\lib\site-packages (from matplotlib)
Requirement already up-to-date: python-dateutil in c:\python27\lib\site-packages (from matplotlib)
Requirement already up-to-date: six in c:\python27\lib\site-packages (from cycler->matplotlib)
Installing collected packages: matplotlib
Found existing installation: matplotlib 1.5.
Uninstalling matplotlib-1.5.:
Successfully uninstalled matplotlib-1.5.
Successfully installed matplotlib-1.5. PS C:\Users\wenchaoz> python -m pip install --upgrade sklearn

主要参考:

http://www.cnblogs.com/wenchaoz/p/5679364.html

http://matplotlib.org/users/installing.html

以下仅部分有效!

主要需要

windows下python2.7版本numpy,Scipy,matplotlib,sklearn安装

这些.exe在https://pan.baidu.com/s/1qXhFNmk#list/path=%2Fnumpy%2Cmatplotlib%2Cscipy

上面的内容可以确保成功安装numpy

参考:http://blog.****.net/q__y__l/article/details/50730769