ERPNext Conference 2019* ERPNext.com Blog

Error pip install -e bench-repo


#1

i get error when run this command
pip install -e bench-repo

Traceback (most recent call last):

File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 583, in _build_master
ws.require(requires)
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 900, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pip 19.2.1 (/usr/local/lib/python3.7/site-packages), Requirement.parse(‘pip==19.1.1’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/opt/python/libexec/bin/pip”, line 6, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 3241, in
@_call_aside
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 3225, in _call_aside
f(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 3254, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 585, in _build_master
return cls._build_from_requirements(requires)
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/usr/local/lib/python3.7/site-packages/pkg_resources/init.py”, line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘pip==19.1.1’ distribution was not found and is required by the application


#2

Try: pip install update pip , then your original command again.


#3

same error :frowning:


#4

Try: pip3 install update pip
then
pip3 install -e bench-repo


#5

perhaps try

python -m pip install --user pip==19.1.1