python2.7.6, setuptools pip install, error: Unicodedecodeerror: ' ASCII ' codec can ' t decode byte

Source: Internet
Author: User

Today is a day of tossing and installing Pyspider, due to the numerous dependencies, and the search for all information is mostly installed under the Linux platform and Mac platform installation tutorial. Poor I tried the N-multiple version, has not been successful.

Finally found that some people say that Python version, not less than 2.7.6, otherwise pycurl can not be installed successfully, a check my is 2.7.2. All right, uninstall, reinstall python2.7.6.

It seems that after installation, the Pycurl can be installed successfully, but the Easy_install error message is related to coding:

Find solutions on-line search: http://www.360doc.com/content/14/0508/00/7821691_375668317.shtml

Open c:\Python27\Lib\mimetypes.py. Line No. 256, find ' default_encoding=sys.getdefaultencoding () '. Add three lines before this code:

   if sys.getdefaultencoding ()! ='gbk':            reload (SYS)            Sys.setdefaultencoding ('gbk')

And then try again, it's OK!

Install spider, you can use the ~

python2.7.6, setuptools pip install, error: Unicodedecodeerror: ' ASCII ' codec can ' t decode byte

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.