我在Visual Studio Express 2013 for Windows Desktop中使用PTVS 2.1和IronPython 2.7.4 ,在安装了 .NET 4.5 的Windows 8.1 Pro x64主机上使用 Update 3 。我有一个空的 Python 项目,默认环境设置为IronPython 2.7。当我想为项目创建一个虚拟环境时,PTVS 尝试下载setuptools和pip并惨遭失败。完整的操作日志在这里。简而言之,它失败了:
System.IO.IOException
"Authentication failed because the remote party has closed the transport stream."
调用函数IOError
时似乎被抛出。urlopen
我已经修改了源代码,因此它会尝试下载软件包http
以及https
,但两者都给出了相同的例外。在官方 Python 2.7.8 环境中工作时,PTVS 可以毫无问题地执行所有操作。
我被这个问题困住了。我无法通过PTVS为 IronPython 安装 setuptools。setuptools 的PyPi 页面上的说明中提供的脚本也使用openurl
并失败并出现相同的错误。
有没有办法setuptools
在 IronPython 环境中安装/使用?