New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install --isolated fails on Python 3.x < 3.4 due to unrecognised --no-user-cfg flag #2881

Closed
malcolmr opened this Issue Jun 6, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@malcolmr

malcolmr commented Jun 6, 2015

e.g. (using virtualenv is just to make it easier to replicate; it's not required)

$ python3 -V
Python 3.2.3
$ python3 virtualenv/virtualenv.py env
New python executable in env/bin/python3
Also creating executable in env/bin/python
Installing setuptools, pip, wheel...done.
$ env/bin/pip install --isolated --no-binary pep8 --no-cache-dir pep8
Collecting pep8
  Downloading pep8-1.6.2.tar.gz (74kB)
    100% |████████████████████████████████| 77kB 1.9MB/s 
    Complete output from command python setup.py egg_info:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: option --no-user-cfg not recognized

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-31f388/pep8

This is because distutils added support for --no-user-cfg in Python 2.7, but it was reverted for 3.0, and only added back for 3.4. See Python issue 19544 and (the end of) issue 1180.

(Python 3.2.3 is the version shipped with Debian 7, which I how I ran into this.)

@dstufft

This comment has been minimized.

Show comment
Hide comment
@dstufft

dstufft Mar 22, 2017

Member

Closing this as we no longer support 3.2 and 3.3 is being deprecated with barely any users left using it.

Member

dstufft commented Mar 22, 2017

Closing this as we no longer support 3.2 and 3.3 is being deprecated with barely any users left using it.

@dstufft dstufft closed this Mar 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment