Bench installation problem semantic_version

I install bench repository and install the requirement manually
I got than error ,
I installed semantic_version

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 6, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3112, in
@_call_aside
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3096, in _call_aside
f(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3125, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 578, in _build_master
ws.require(requires)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 895, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 781, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘semantic_version’ distribution was not found and is required by bench

Any help please

1 Like

Did you cd ~/frappe-bench? and did you use sudo for the bench repo?

that’s right I used sudo
pip install --user -e bench-repo

you could try this (but I don’t know if it’ll help)

sudo pip install --upgrade virtualenv

There were a few posts recently on the topic of pip environment, which may be useful

thank you
I install it manually using user not root

1 Like