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

pip3 fails to import main #171

Open
artmg opened this issue Nov 6, 2019 · 0 comments
Open

pip3 fails to import main #171

artmg opened this issue Nov 6, 2019 · 0 comments

Comments

@artmg
Copy link

artmg commented Nov 6, 2019

On both Raspbian and Ubuntu, with python versions 3.5 and 3.6, after executing pip3 install --user -r requirements.txt I find that I cannot use pip3 successfully.

$ pip3 install --user -r requirements.txt
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'

This is apparently a known issue on Debian-based systems, due to the different ways that the OS and pip install binaries – see. https://stackoverflow.com/q/49836676 – the workaround I used was to prepend the pip3 command thus:

~/.local/bin/pip3

With this workaround the issue goes away. I doubt it is within the remit of this project to do anything to rectify the issue, but perhaps if people come across this problem it might be worth having a workaround in the documentation.

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

1 participant