[Tutor] ez_setup.py for Python3 64-bit on Vista
Walter Prins
wprins at gmail.com
Sun Jan 1 03:50:35 CET 2012
Hi,
On 31 December 2011 23:22, Mark Lybrand <mlybrand at gmail.com> wrote:
> I have found this script:
>
> http://peak.telecommunity.com/dist/ez_setup.py
>
> But I can see that this is Python 2.x Is there a Python 3 version, or
> should I be doing something else to install an .egg on my system?
There isn't an official version of setuptools for Python 3.x. Use
"distribute" instead, which is a fork of setuptools and is available
for Python 3.x:
http://pypi.python.org/pypi/distribute#disclaimers
... and/or use "Pip":
http://www.pip-installer.org/en/latest/index.html
To install "distribute", download the "distribute_setup.py" file from
the above pages, then open a command prompt and run the downloaded
Python script with your Python 3.2 interpreter. The command wil be
something like:
C:\Python32\Python.exe C:\Users\Mark\Downloads\distribute_setup.py
(here I'm assuming your Python interpreter path is C:\Python32 and
that you've downloaded the distribute_setup.py file to
C:\Users\Mark\Downloads. You'll have to adjust this accordingly.
Once this is done, you'll have a new command/script in
C:\Python32\Scripts. So, if you do:
cd c:\Python32\Scripts
dir
... you'll see the newly installed script. Additionally you can then
trivially also install "pip", by executing:
easy_install pip
from the command prompt.
HTH,
Walter
More information about the Tutor
mailing list