Leiaz/python-awox-mesh-light

install failed: ImportError: cannot import name main

Opened this issue · 3 comments

Hi,

pip install failes with

Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
from pip import main
ImportError: cannot import name main

what to do?

Leiaz commented

The error comes from /usr/bin/pip. From this comment, this is due to a change in pip that breaks some wrapper scripts. A workaround is calling pip with python -m pip.

ty for your rapid answer.
Now i got this:

henry@x250:~/git/python-awox-mesh-light⟫ python -m pip install setup.py 
Collecting setup.py
  Could not find a version that satisfies the requirement setup.py (from versions: )
No matching distribution found for setup.py
1 henry@x250:~/git/python-awox-mesh-light⟫ 
Leiaz commented

Try python -m pip install . (a dot, for "this directory") With your command pip tries to find a package called setup.py.