Python installation hint No module named Setuptools,wget tip error 403:ssl is required

Source: Internet
Author: User
Tags ssl certificate

Prompt for error when downloading and installing a Python tool no module named Setuptools

[[Email protected] Supervisor-3.3.0]$ sudo python setup. PY installtraceback  (most recent call last< Span class= "pun"):  file  "setup.py" , line 32,  <module> from Setuptools import Setup, Find_packagesimporterror : no module named Setuptools    

So to download Setuptools tool, but encountered error error 403:ssl is required.

[[Email protected]~]# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz--2017-11-03 11:20:16--http://PyPI.Python.Org/Packages/Source/S/Setuptools/Setuptools-0.6c11.tar.GzResolvingPyPI.Python.Org... 151.101.72.223, 2a04:4e42:11::223ConnectingTo PyPI.Pythonorg| 151.101. 72.223|:80..  Connected., awaiting Response ...  403 SSL is Required2017 -11-03 11 :20:16 ERROR 403: SSL is Required     

At this point, you may think of it as an error in the SSL certificate check, and may try the following command, but find that it will still error. In addition, Wget also has a configuration at the time of installation:./configure--with-ssl=openssl, this configuration affects whether wget supports the acquisition of HTTPS content.

--No-check-certificate http://PyPI.  Python.  ORG/packages/source/s/setuptools/setuptools-  0.6c11.tar.  GZ                   

The actual error 403:ssl is required error only request URL must be HTTPS, the requester itself did not do 301 turn processing. So use the following command. Then install Setuptools

sudo wget HTTPS://PyPI.Python.Org/Packages/Source/S/Setuptools/Setuptools-0.6c11.tar.Gztar-XVF Setuptools-0.6c11.tar.GZCD Setuptools-0.6c11sudo python setup.PY Buildsudo python Setup.PY Install.....#如下标志安装成功Installed /Usr/Lib/Python2.6/Site-Packages/Setuptools-0.6c11-Py2.6.eggProcessingDependenciesForSetuptools==0.6c11FinishedProcessing dependenciesForSetuptools==0.6c11#查看文件[[Email protected]~]$ ll/Usr/Lib/Python2.6/Site-Packages/Setuptools-0.6c11-Py2.6.egg-rw-R--r-- 1  root root 333591 nov Span class= "lit" >3 11:31  /usr/lib /python2. 6/site-packages/< Span class= "PLN" >setuptools-0.6c11-py2< Span class= "pun". 6.egg                

Python installation prompts no module named Setuptools,wget tip error 403:ssl is required

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.