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