Skip to content
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

error when running virtualenv2 venv #118

Closed
afiqqo231 opened this issue Apr 7, 2020 · 3 comments
Closed

error when running virtualenv2 venv #118

afiqqo231 opened this issue Apr 7, 2020 · 3 comments

Comments

@afiqqo231
Copy link

Hi. Can you help me? When i run the command virtualenv2 venv I get error.

"Traceback (most recent call last):
File "/usr/bin/virtualenv2", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3251, in
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'distlib<1,>=0.3.0' distribution was not found and is required by virtualenv"
can you help me? Thank you

@RealAkito
Copy link
Contributor

Distlib is not installed. You can do it via python -m pip install distlib

You must have pip installed in this case.

@josevega96
Copy link

just solved that you need the pyhton2-distlib package

sudo pacman -S python2-distlib

@RealAkito
Copy link
Contributor

just solved that you need the pyhton2-distlib package

sudo pacman -S python2-distlib

@akhilnarang this should be added to Arch Linux setup script.

naveenjohnsonv pushed a commit to naveenjohnsonv/Build-Env-Setup-Scripts that referenced this issue Dec 13, 2021
Fixes akhilnarang#118

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

Former-commit-id: f9e166c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants