-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ModuleNotFoundError: No module named 'pip._vendor.six' #4804
Comments
I run into this error when I try use a python version other than the system version installed with pyenv EnvironmentWindows 10 Home Edition
Steps to recreate
However works fine with the system version, which is |
After some investigation this appears to be an issue with the On my WSL2 Ubuntu install:
So this is not a |
Ok I figured it out for my issue. I did not have
Solves this issue for me. |
I'm also having this issue, but I don't want to use the system version of python. I'm using pipenv and pyenv precisely to lock in things like which version of python. This is infuriating. How do we get past this bug? Is there a better installation of pip? Does it have something to do with not getting pipenv to point to the correct pip? |
Update on my end. I had a system-level install of pipenv, and I found in the pipenv documentation that that should be avoided. After I followed the instructions to just have a user-level install with |
I had to install it through
Works with pyenv and works also with asdf |
I get the exact same error but with PYPY, kindly asking for some help over here, any suggestions welcome. For the lack of identical threads about pypy on the web, I created a separate stack question: |
I use an old version virtualenv ( 15.1.0 ), it became OK, so I think it is a bug of virtualenv. |
It should have something to do with the redistributed version of pip on debian systems. So basically don't install pipenv into the global, use a tool like |
Thought this is not strictly related to
Hope it helps. |
This thread feels informative, but is there an action item here or should we close it? I see where the install is described more in the documentation here: https://pipenv.pypa.io/en/latest/install/#installing-pipenv than in the README.md. |
for ASDF users, that what helped me:
|
Had the same issue as well. New installation of python 3.10.2 on ubuntu 20. Created a virtualenv the way I normally would rm -r env
python3.10.2 -m venv env |
I ran into this problem after installing python 3.9.10 from source, then created a virtualenv using it, but couldn't install any packages but instead got this ``ModuleNotFoundError: No module named 'pip._vendor.six' I solved it by running this command:
note here Hope this helps someone |
On Ubuntu 20.04 LTS running |
I am still experiencing this dependency hell:
There appears to be no simple way to either (a) install bundled version of pip or (b) have pip find site package "six" rather than look for bundled package. I am running Ubuntu 20.04.4 LTS and python 3.9.13 |
@truekonrads Could you try the new version of pipenv that leans more exclusively on the vendor'd pip and not the user installed version. It just released, |
EniveronmentDocker: 20.10.22 Error found version11.9.0 (use apt installed) SolutionTurn to use @matteius Hi, I am trying to use docker to build an environment, and I chose to use apt to install pipenv, like this: |
Apt hasn't updated pipenv in a long time, please use pypi and pip to install. |
I follow the Installation in the official README.md. |
Issue description
I installed pipenv on my Ubuntu 20 system using /usr/bin/pip3 install --user pipenv. When I try installing any package I get the following error:
I can imagine this might be related to interference from pyenv. Simply trying to install the missing six package just tells me it's already installed. Thanks for any help!
Expected result
Installing packages works.
Actual result
See above.
Steps to replicate
This happens in an empty folder as well, i.e. doesn't seem related to any pipenv file of mine.
$ pipenv --support
Pipenv version:
'2021.5.29'
Pipenv location:
'/home/ben/.local/lib/python3.8/site-packages/pipenv'
Python location:
'/usr/bin/python3'
Python installations found:
3.9.1
:/home/ben/.pyenv/versions/tf/bin/python3.9
3.9.1
:/home/ben/.pyenv/versions/d39/bin/python3.9
3.9.1
:/home/ben/.pyenv/versions/minerl/bin/python3.9
3.9.1
:/home/ben/.pyenv/versions/gen_coco/bin/python3.9
3.9.1
:/home/ben/.pyenv/versions/3.9.1/bin/python3.9
3.8.10
:/usr/bin/python3
3.8.10
:/usr/bin/python3.8
3.8.10
:/bin/python3
3.8.10
:/bin/python3.8
3.8.7
:/home/ben/.pyenv/versions/3.8.7/bin/python3
3.8.7
:/home/ben/.pyenv/versions/d38_pt12/bin/python3
3.8.7
:/home/ben/.pyenv/versions/d38/bin/python3
3.7.9
:/home/ben/.pyenv/versions/d37/bin/python3.7
3.7.9
:/home/ben/.pyenv/versions/3.7.9/bin/python3.7m
3.7.9
:/home/ben/.pyenv/versions/d37_pd/bin/python3.7
PEP 508 Information:
System environment variables:
LC_TERMINAL
LC_CTYPE
LC_TERMINAL_VERSION
USER
LOGNAME
HOME
PATH
SHELL
TERM
SSH_AUTH_SOCK
XDG_SESSION_ID
XDG_RUNTIME_DIR
DBUS_SESSION_BUS_ADDRESS
XDG_SESSION_TYPE
XDG_SESSION_CLASS
MOTD_SHOWN
LANG
LC_NUMERIC
LC_TIME
LC_MONETARY
LC_PAPER
LC_NAME
LC_ADDRESS
LC_TELEPHONE
LC_MEASUREMENT
LC_IDENTIFICATION
SSH_CLIENT
SSH_CONNECTION
SSH_TTY
SHLVL
PWD
OLDPWD
ZSH
PAGER
LESS
LSCOLORS
LS_COLORS
PYENV_SHELL
PYENV_VIRTUALENV_INIT
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/ben/.cargo/bin:/usr/local/bin:/home/ben/.npm-global/bin:/home/ben/.pyenv/plugins/pyenv-virtualenv/shims:/home/ben/.pyenv/shims:/home/ben/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ben/.local/bin
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
PWD
:/home/ben/devel/adv/test_folder
Contents of
Pipfile
('/media/ben/data/devel/test_folder/Pipfile'):The text was updated successfully, but these errors were encountered: