Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73707 > unrolled thread
| Started by | "水静流深" <1248283536@qq.com> |
|---|---|
| First post | 2014-06-28 19:49 +0800 |
| Last post | 2014-06-28 19:49 +0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
why i can't install ez_setup "水静流深" <1248283536@qq.com> - 2014-06-28 19:49 +0800
| From | "水静流深" <1248283536@qq.com> |
|---|---|
| Date | 2014-06-28 19:49 +0800 |
| Subject | why i can't install ez_setup |
| Message-ID | <mailman.11310.1403968204.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
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?
Back to top | Article view | comp.lang.python
csiph-web