Syntax error "ez_setup.py"

I try to install easy_install by running ez_setup.py from the command line (64-bit Windows machine) and getting "Invalid syntax" in the following line:

except pkg_resources.VersionConflict, e: 

Python Version 3.2.3

Any suggestions to fix this? Thanks

UPDATE: Sorry, I'm completely new to Python, now it fails on this line:

Type "Version Setuptools," version, "or more installed."

+4
source share
2 answers

Change the comma to "as"

 except pkg_resources.VersionConflict as e: 
+4
source

I tried to get python 3.3 to work on my x64 Windows 8 machine and went through a couple of circles before finding the following method to load everything:

  • Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/

  • Install the distribution package from a binary file - ignore the obsolescence warning at the beginning of the installer. These unofficial binaries don't even have the β€œsetuptools” download, and projects don't seem to have been updated for years.

  • Install pip from binary. This did not work for me in the first two attempts, something about pkg_resources, so I think the distribution could help.

Now pip works for me and I can use it to install things.

0
source

All Articles