Python Small Problem Solving

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.