Leiaz / python-awox-mesh-light

Python package to control Awox mesh light bulbs.
MIT License
69 stars 15 forks source link

install failed: ImportError: cannot import name main #6

Open HenryVolkmer opened 6 years ago

HenryVolkmer commented 6 years ago

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 6 years ago

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.

HenryVolkmer commented 6 years ago

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 6 years ago

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