1. Hugo Lopes Tavares
  2. pip
  3. Issues
Issue #1 invalid

print statement instead of print() function in pip/__init__.py

Piotr Dobrogost
created an issue

Hi!

After downloading this fork of pip and installing it with {{{ python setup.py install }}} I tried installing virtualenv5 with {{{ pip install virtualenv5 }}} and then I got this traceback:

{{{

!py3tb

Traceback (most recent call last): File "c:\program files\python\3.2\scripts\pip-script.py", line 9, in <module> load_entry_point('pip==0.8', 'console_scripts', 'pip')() File "c:\program files\python\3.2\lib\site-packages\distribute-0.6.14-py3.2.egg\pkg_resources.py", line 305, in load_entry_p oint return get_distribution(dist).load_entry_point(group, name) File "c:\program files\python\3.2\lib\site-packages\distribute-0.6.14-py3.2.egg\pkg_resources.py", line 2244, in load_entry_ point return ep.load() File "c:\program files\python\3.2\lib\site-packages\distribute-0.6.14-py3.2.egg\pkg_resources.py", line 1954, in load entry = import(self.module_name, globals(),globals(), ['name']) File "c:\program files\python\3.2\lib\site-packages\pip-0.8-py3.2.egg\pip__init__.py", line 56 print dist ^ SyntaxError: invalid syntax }}}

How come does version of pip for Python 3 use print statement instead of print() function?

Comments (6)

  1. Log in to comment