原生Python27的pip和PIL安装总结

1.pip的下载和安装

https://blog.csdn.net/zhenaoxi1077/article/details/80036182,下载了pip-10.0.1.tar文件,安装中出现No module named setuptools问题。

2.Python2之No module named setuptools 安装pip

https://blog.csdn.net/L18780079219/article/details/80954271

下载了其中的setuptools-41.0.1文件,通过python setup.py install 完成安装

3.安装pip

setuptools安装ok后,之前pip的安装就可以了,python setup.py install 完成安装,然后把pip所在目录c:\phthon27\scrips写入path环境变量

4.Win7 64位下Python安装PIL图像处理库

https://blog.csdn.net/u012428169/article/details/70210017

我下载了Pillow-6.0.0-cp27-cp27m-win_amd64.whl,pip install Pillow-6.0.0-cp27-cp27m-win_amd64.whl搞定

我是把setuptools-41.0.1、pip-10.0.1、Pillow-6.0.0-cp27-cp27m-win_amd64.whl全部放到c:\phthon27\中进行安装工作的。

5.安装numpy

下载了numpy-1.11.2源文件包,进入其目录python setup.py install,安装出现提示报错:Microsoft Visual C++ 9.0 is required  (Unable to find vcvarsall.bat),https://www.cnblogs.com/ldm1989/p/4210743.html,下载了VCForPython27安装后,重新python setup.py install搞定。

 

你可能感兴趣的:(原生Python27的pip和PIL安装总结)