0

According to its [documentation, I am trying to instal Pip running get-pip.py and I get the following error. My version of Python is 3.2.3. Any ideas of what I should do?

Warning (from warnings module):
  File "c:\users\ut601039\appdata\local\temp\tmpoljcda\pip.zip\pip\_vendor\pkg_resources\__init__.py", line 80
UserWarning: Support for Python 3.0-3.2 has been dropped. Future versions will fail here.
Traceback (most recent call last):
  File "D:\Programas\Python\get-pip.py", line 19177, in <module>
    main()
  File "D:\Programas\Python\get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "D:\Programas\Python\get-pip.py", line 82, in bootstrap
    import pip
  File "c:\users\ut601039\appdata\local\temp\tmpoljcda\pip.zip\pip\__init__.py", line 16, in <module>
  File "c:\users\ut601039\appdata\local\temp\tmpoljcda\pip.zip\pip\vcs\mercurial.py", line 9, in <module>
  File "c:\users\ut601039\appdata\local\temp\tmpoljcda\pip.zip\pip\download.py", line 36, in <module>
  File "c:\users\ut601039\appdata\local\temp\tmpoljcda\pip.zip\pip\utils\ui.py", line 15, in <module>
  File "c:\users\ut601039\appdata\local\temp\tmpoljcda\pip.zip\pip\_vendor\progress\bar.py", line 48
    empty_fill = u'∙'
                    ^
SyntaxError: invalid syntax
2

3 Answers 3

2

Python 3.2 is an old version and I believe past its end of life. You should be using at least Python 3.4, but 3.5 would be preferable.

The u prefix for strings didn't appear until Python 3.3 I believe though it may have been 3.4.

Sign up to request clarification or add additional context in comments.

4 Comments

It was 3.3.
3.3 added the u'..' prefix. As a result, the minimum version of Python 3.x is 3.3, see pypi.python.org/pypi/pip
I can't install the newest version of Python right now (I don't have administrator permissions), can I get an older version of pip?
I could install Python version 3.3 and it worked, thanks.
1

You are trying to install a version of pip that no longer supports Python 3.2. Support for 3.2 was dropped in version 8.0.0. Python 3.2 doesn't support the required u'...' compatibility syntax for string literals.

You could try to download version 7.1.2 (download the source distribution, the .tar.gz link), unpack that tarball and install the package with python setup.py install.

I would, however, strongly suggest you upgrade your Python installation instead. Python 3.2 stopped receiving support in February 2016, and 3.3 (first released September 2012), 3.4 (March 2014) and 3.5 (September 2015)– have all been released before that point.

Comments

0

Try to use newest version of Python, especially when use Python 3.x.

In this case you use latest command and pip but use old Python. I you have to use old version, read old documentation.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.