When installing a third-party source package, I'm using Pip, but I'm having a lot of problems. Using Python 3.5, the VS2012 is installed
Because the reference is the Liu Xuefeng's tutorial, first of all, the installation of PIL has been a problem.
Direct use PIP install PIL Direct is no matching distribution found for PIL
Check a bit, the original PIL early not updated, now with IS pillow
After using the command pip install Pillow, the result is not speed, foreign source domestic link is still more troublesome. The image source of the watercress is used Http://pypi.douban.com/simple
Command for PIP--default-timeout=100 install xx-i http://pypi.douban.com/simple
The result is still a problem. (Sad Reminder)
Error:Mircosoft visual C++ 14.0 required(Unable to find vcvarsall.bat)
应该是Python 没有识别到VS2012的编译路径,解决办法是重新定向路径,典型如
SET vs90comntools=%vs110comntools%
This command directs the VS2008 's compilation path to VS2012, which may be problematic due to a redirect path, but it's good to solve the problem at the moment.
Results... It's still not working.
Perhaps Python 3.5 is looking for a compiler that is not VS2008. Forget it or modify the source code.
There are two ways to modify the source code, as long as the value of version is modified, in (this is my Python 3.5 installation path)
Modify the Get_build_version () function in the msvccompiler.py in C:\Program Files\python 3.5\lib\distutils to return directly to the VS2012 C + + The version number.
The second way is simple, in the msvc9compiler.py directly modify the version value, in 295 rows (possibly related to the PY version),
Change version =get_build_version () to
VERSION = 11.0
Note: VS2010 is 10,vs2012 is 11, other similar.
Finally OK.
Python Small Problem Solving