Python Tools for Visual Studio cannot load `setuptools` on IronPython

I am using PTVS 2.1 with IronPython 2.7.4 in Visual Studio Express 2013 for Windows Desktop with Update 3 on a Windows 8.1 Pro x64 host with .NET 4.5 installed. I have an empty Python project with the default env for IronPython 2.7 installed. When I want a virtual environment for a project, PTVS tries to download setuptools and pip and fails. Here is the complete log of the operation . In essence it fails:

System.IO.IOException
"Authentication failed because the remote party has closed the transport stream."

      

Seems to be IOError

thrown when the function is called urlopen

. I changed sources so it tries to download packages though http

as well https

, but both give the same exceptions. PTVS does everything seamlessly when running in the official Python 2.7.8 environment.

I am stuck with this issue. I can't install setuptools for IronPython via PTVS. The script given in the instructions on the setuppools PyPi page also uses openurl

and fails with the same error.

Is there a way to install / use setuptools

inside IronPython env?

+1


source to share


1 answer


after 2.7.5 is released, it will include a rear provisioning port. Installing pip and setuptool is as easy as calling:

ipy -X:Frames -m ensurepip

      



At the moment you can use 2.7.5b3 as the best approximation. Older versions of IronPython may work with some older versions of setuptools or pip, but the entry is spotty.

+4


source







All Articles