python-awox-mesh-light icon indicating copy to clipboard operation
python-awox-mesh-light copied to clipboard

install failed: ImportError: cannot import name main

Open HenryVolkmer opened this issue 7 years ago • 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?

HenryVolkmer avatar May 04 '18 19:05 HenryVolkmer

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.

Leiaz avatar May 04 '18 20:05 Leiaz

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⟫ 

HenryVolkmer avatar May 04 '18 20:05 HenryVolkmer

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

Leiaz avatar May 05 '18 11:05 Leiaz