I have download the setuptools-5.2.zip  with wget <br>1.download  setuptools-5.2.zip<span id="_editor_bookmark_start_26" style="display: none; line-height: 0px;">‍</span><br><span id="_editor_bookmark_start_12" style="display: none; line-height: 0px;">‍</span><div><div>C:\Users\pengsir>d:\wget -c https://pypi.python.org/packages/source/s/setuptools<br>/setuptools-5.2.zip<br>--2014-06-29 06:42:30--  https://pypi.python.org/packages/source/s/setuptools/se<br>tuptools-5.2.zip<br>Resolving pypi.python.org... 103.245.222.175<br>Connecting to pypi.python.org|103.245.222.175|:443... connected.<br>ERROR: cannot verify pypi.python.org's certificate, issued by `/C=US/O=DigiCert<br>Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':<br>  Unable to locally verify the issuer's authority.<br>ERROR: certificate common name `*.c.ssl.fastly.net' doesn't match requested host<br> name `pypi.python.org'.<br>To connect to pypi.python.org insecurely, use `--no-check-certificate'.<br>Unable to establish SSL connection.<br><br>C:\Users\pengsir>d:\wget -c https://pypi.python.org/packages/source/s/setuptools<br>/setuptools-5.2.zip  --no-check-certificate<br>--2014-06-29 06:43:02--  https://pypi.python.org/packages/source/s/setuptools/se<br>tuptools-5.2.zip<br>Resolving pypi.python.org... 103.245.222.175<br>Connecting to pypi.python.org|103.245.222.175|:443... connected.<br>WARNING: cannot verify pypi.python.org's certificate, issued by `/C=US/O=DigiCer<br>t Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':<br>  Unable to locally verify the issuer's authority.<br>WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested ho<br>st name `pypi.python.org'.<br>HTTP request sent, awaiting response... 200 OK<br>Length: 856803 (837K) [application/zip]<br>Saving to: `setuptools-5.2.zip'<br><br>100%[======================================>] 856,803      208K/s   in 4.0s<span id="_editor_bookmark_start_13" style="display: none; line-height: 0px;">‍</span><br><br>2.install  setuptools<br>extract all files in d: disk.<br><br>C:\Users\pengsir>python  d:\setuptools-5.2\setup.py<br>usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br>   or: setup.py --help [cmd1 cmd2 ...]<br>   or: setup.py --help-commands<br>   or: setup.py cmd --help<br><br>error: no commands supplied<br><br>C:\Users\pengsir>python  d:\setuptools-5.2\easy_install.py<br>error: No urls, filenames, or requirements specified (see --help)<span id="_editor_bookmark_start_27" style="display: none; line-height: 0px;">‍</span><br><br>How can i install it now?<br><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Mark Lawrence";<breamoreboy@yahoo.co.uk>;</div><div><b>发送时间:</b> 2014年6月29日(星期天) 凌晨1:24</div><div><b>收件人:</b> "python-list"<python-list@python.org>; <wbr></div><div></div><div><b>主题:</b> Re: why i can't install ez_setup</div></div><div><br></div>On 28/06/2014 16:36, Chris “Kwpolska” Warrick wrote:<br>> On Sat, Jun 28, 2014 at 1:49 PM, 水静流深 <1248283536@qq.com> wrote:<br>>> I have downloaoded ez_setup.py ,when i install it ,the wrong message:<br>>><br>>>> python  d:\ez_setup.py<br>>> Downloading<br>>> https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.<br>>> zip<br>>> Exception calling "DownloadFile" with "2" argument(s): "Unable to connect to<br>>> th<br>>> e remote server"<br>>> At line:1 char:152<br>>> + [System.Net.WebRequest]::DefaultWebProxy.Credentials =<br>>> [System.Net.Credential<br>>> Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile<br>>> <<<<<br>>>   ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zip',<br>>> 'C<br>>> :\\Users\\pengsir\\setuptools-5.2.zip')<br>>>      + CategoryInfo          : NotSpecified: (:) [],<br>>> MethodInvocationException<br>>>      + FullyQualifiedErrorId : DotNetMethodException<br>>><br>>> Traceback (most recent call last):<br>>>    File "d:\ez_setup.py", line 332, in <module><br>>>      sys.exit(main())<br>>>    File "d:\ez_setup.py", line 327, in main<br>>>      downloader_factory=options.downloader_factory,<br>>>    File "d:\ez_setup.py", line 287, in download_setuptools<br>>>      downloader(url, saveto)<br>>>    File "d:\ez_setup.py", line 192, in download_file_powershell<br>>>      _clean_check(cmd, target)<br>>>    File "d:\ez_setup.py", line 169, in _clean_check<br>>>      subprocess.check_call(cmd)<br>>>    File "d:\Python27\lib\subprocess.py", line 540, in check_call<br>>>      raise CalledProcessError(retcode, cmd)<br>>> subprocess.CalledProcessError: Command '['powershell', '-Command',<br>>> "[System.Net.<br>>> WebRequest]::DefaultWebProxy.Credentials =<br>>> [System.Net.CredentialCache]::Default<br>>> Credentials; (new-object<br>>> System.Net.WebClient).DownloadFile('https://pypi.python<br>>> .org/packages/source/s/setuptools/setuptools-5.2.zip',<br>>> 'C:\\\\Users\\\\pengsir\\<br>>> \\setuptools-5.2.zip')"]' returned non-zero exit status 1<br>>><br>>> what is wrong with it?<br>><br>> Either (a) pypi, or (b) you were offline when trying to install.<br>><br>> Also, you generally want to use get-pip.py instead, it will also get<br>> you pip in addition to setuptools:<br>><br>> https://bootstrap.pypa.io/get-pip.py<br>><br><br>Or get Python 3.4 which can get pip for you if you so desire.<br><br>-- <br>My fellow Pythonistas, ask not what our language can do for you, ask <br>what you can do for our language.<br><br>Mark Lawrence<br><br>---<br>This email is free from viruses and malware because avast! Antivirus protection is active.<br>http://www.avast.com<br><br><br>-- <br>https://mail.python.org/mailman/listinfo/python-list<br></div>