回复: why i can't install ez_setup

水静流深 1248283536 at qq.com
Sat Jun 28 18:54:24 EDT 2014


I have download the setuptools-5.2.zip  with wget 
1.download  setuptools-5.2.zip‍
‍C:\Users\pengsir>d:\wget -c https://pypi.python.org/packages/source/s/setuptools
/setuptools-5.2.zip
--2014-06-29 06:42:30--  https://pypi.python.org/packages/source/s/setuptools/se
tuptools-5.2.zip
Resolving pypi.python.org... 103.245.222.175
Connecting to pypi.python.org|103.245.222.175|:443... connected.
ERROR: cannot verify pypi.python.org's certificate, issued by `/C=US/O=DigiCert
Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
ERROR: certificate common name `*.c.ssl.fastly.net' doesn't match requested host
 name `pypi.python.org'.
To connect to pypi.python.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

C:\Users\pengsir>d:\wget -c https://pypi.python.org/packages/source/s/setuptools
/setuptools-5.2.zip  --no-check-certificate
--2014-06-29 06:43:02--  https://pypi.python.org/packages/source/s/setuptools/se
tuptools-5.2.zip
Resolving pypi.python.org... 103.245.222.175
Connecting to pypi.python.org|103.245.222.175|:443... connected.
WARNING: cannot verify pypi.python.org's certificate, issued by `/C=US/O=DigiCer
t Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested ho
st name `pypi.python.org'.
HTTP request sent, awaiting response... 200 OK
Length: 856803 (837K) [application/zip]
Saving to: `setuptools-5.2.zip'

100%[======================================>] 856,803      208K/s   in 4.0s‍

2.install  setuptools
extract all files in d: disk.

C:\Users\pengsir>python  d:\setuptools-5.2\setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

C:\Users\pengsir>python  d:\setuptools-5.2\easy_install.py
error: No urls, filenames, or requirements specified (see --help)‍

How can i install it now?




------------------ 原始邮件 ------------------
发件人: "Mark Lawrence";<breamoreboy at yahoo.co.uk>;
发送时间: 2014年6月29日(星期天) 凌晨1:24
收件人: "python-list"<python-list at python.org>; 

主题: Re: why i can't install ez_setup



On 28/06/2014 16:36, Chris “Kwpolska” Warrick wrote:
> On Sat, Jun 28, 2014 at 1:49 PM, 水静流深 <1248283536 at qq.com> wrote:
>> I have downloaoded ez_setup.py ,when i install it ,the wrong message:
>>
>>> python  d:\ez_setup.py
>> Downloading
>> https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.
>> zip
>> Exception calling "DownloadFile" with "2" argument(s): "Unable to connect to
>> th
>> e remote server"
>> At line:1 char:152
>> + [System.Net.WebRequest]::DefaultWebProxy.Credentials =
>> [System.Net.Credential
>> Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile
>> <<<<
>>   ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zip',
>> 'C
>> :\\Users\\pengsir\\setuptools-5.2.zip')
>>      + CategoryInfo          : NotSpecified: (:) [],
>> MethodInvocationException
>>      + FullyQualifiedErrorId : DotNetMethodException
>>
>> Traceback (most recent call last):
>>    File "d:\ez_setup.py", line 332, in <module>
>>      sys.exit(main())
>>    File "d:\ez_setup.py", line 327, in main
>>      downloader_factory=options.downloader_factory,
>>    File "d:\ez_setup.py", line 287, in download_setuptools
>>      downloader(url, saveto)
>>    File "d:\ez_setup.py", line 192, in download_file_powershell
>>      _clean_check(cmd, target)
>>    File "d:\ez_setup.py", line 169, in _clean_check
>>      subprocess.check_call(cmd)
>>    File "d:\Python27\lib\subprocess.py", line 540, in check_call
>>      raise CalledProcessError(retcode, cmd)
>> subprocess.CalledProcessError: Command '['powershell', '-Command',
>> "[System.Net.
>> WebRequest]::DefaultWebProxy.Credentials =
>> [System.Net.CredentialCache]::Default
>> Credentials; (new-object
>> System.Net.WebClient).DownloadFile('https://pypi.python
>> .org/packages/source/s/setuptools/setuptools-5.2.zip',
>> 'C:\\\\Users\\\\pengsir\\
>> \\setuptools-5.2.zip')"]' returned non-zero exit status 1
>>
>> what is wrong with it?
>
> Either (a) pypi, or (b) you were offline when trying to install.
>
> Also, you generally want to use get-pip.py instead, it will also get
> you pip in addition to setuptools:
>
> https://bootstrap.pypa.io/get-pip.py
>

Or get Python 3.4 which can get pip for you if you so desire.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


-- 
https://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140629/9ae04575/attachment.html>


More information about the Python-list mailing list