-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cannot import name 'six' from 'pip._vendor' inside virtual environment on Debian #1860
Comments
Hello, how did you install virtualenv? |
Apologies for forgetting this detail, Debian's/Bullseye repo : ~$ virtualenv --version
virtualenv 20.0.21+ds from /usr/lib/python3/dist-packages/virtualenv/__init__.py |
This is due to Debian repackaging virtualenv we distribute and applies patches that are broken. Please open an issue on Debian issue tracker. https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=virtualenv |
If you install it via pip or use the zipapp should be good 😎 |
Thanks for answer's speed, the right URL to search Debian BTS is : And a candidate was found :
|
On Debian/Bullseye (testing) the provided
python3
moved from 3.7 to 3.8, I install a freshpython3.7.7
for projects still using it, butpip
fails inside virtual environments created with this installation.Environment
virtualenv
version :sudo apt install python3-virtualenv
~$ virtualenv --version virtualenv 20.0.21+ds from /usr/lib/python3/dist-packages/virtualenv/__init__.py
pip list
of the host python wherevirtualenv
is installed:~$ pip list Package Version ------------------ ---------- appdirs 1.4.4 certifi 2020.4.5.1 chardet 3.0.4 distlib 0.3.0 filelock 3.0.12 httplib2 0.18.1 idna 2.9 importlib-metadata 1.6.0 more-itertools 4.2.0 pip 20.1.1 pycurl 7.43.0.2 Pygments 2.3.1 PySimpleSOAP 1.16.2 python-apt 2.1.3 python-debian 0.1.37 python-debianbts 3.0.2 PyYAML 5.3.1 reportbug 7.6.0 requests 2.23.0 setuptools 46.1.3 six 1.15.0 urllib3 1.25.9 virtualenv 20.0.21+ds wheel 0.34.2 zipp 1.0.0
Python3 installation provided by OS : 3.8 is default, 3.7 is still there (almost partly) :
My
python3.7.7
installation in userland follows this way. I try asudo make install
, it do not change situation.Output of the virtual environment creation
On the other side, python's
venv
package provides me a working virtual environnement :$ pylocal/bin/python3.7 -m venv .venv37 $ source venv37/bin/activate (.venv37) $ python -m pip -V pip 19.2.3 from /home/user/.venv37/lib/python3.7/site-packages/pip (python 3.7)
For memory, I asked a Stack Overflow question about this.
Thanks to all mainteners for the work on this package.
The text was updated successfully, but these errors were encountered: