Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install failed: ImportError: cannot import name main #6

Open
HenryVolkmer opened this issue May 4, 2018 · 3 comments
Open

install failed: ImportError: cannot import name main #6

HenryVolkmer opened this issue May 4, 2018 · 3 comments

Comments

@HenryVolkmer
Copy link

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
Copy link
Owner

Leiaz commented May 4, 2018

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
Copy link
Author

HenryVolkmer commented May 4, 2018

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
Copy link
Owner

Leiaz commented May 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants