5

I am trying to install easy_install by running ez_setup.py from command line (64bit windows machine) and getting a "Invalid Syntax" on the following line:

except pkg_resources.VersionConflict, e:

Python version 3.2.3

Any suggestions how to resolve this? Thanks

UPDATE: Sorry people, I am completely new to Python, now it is failing on this line:

print "Setuptools version",version,"or greater has been installed."

6
  • Print is now a function, so it needs parentheses. Like print ("Setuptools version",version,"or greater has been installed.") Commented Aug 19, 2012 at 19:35
  • Use distribute. Commented Aug 19, 2012 at 19:39
  • I also had to change 'import urllib2, shutil' to 'import urllib, shutil'. But now it fails on 'File "D:\Python32\lib\distutils\log.py", line 30, in _log if stream.errors == 'strict': AttributeError: errors' Is there a version of this script for Python 3? Or should I just install an older version of python? Commented Aug 19, 2012 at 19:39
  • 1
    As I said: use distribute. Look at this question. Commented Aug 19, 2012 at 19:41
  • Distribute installation worked fine, now I just need to understand how to use it :/ Thanks! (Submit as answer so I could tag it?) Commented Aug 19, 2012 at 20:01

2 Answers 2

7

Change the comma to 'as'

except pkg_resources.VersionConflict as e:
Sign up to request clarification or add additional context in comments.

Comments

0

I tried to get python 3.3 working 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 distribute from binary - ignore the deprecation warning at the front of the installer. Those unofficial binaries don't even have a "setuptools" download, and the projects don't seem to have been updated in years.

  • Install pip from binary. It didn't work for me in the first couple of attempts, something about pkg_resources, so I think distribute may have helped.

Now I have pip running and I can use it to install things.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.