asdf-community / asdf-community/asdf-python

pip - ImportError: cannot import name main

Open
#49 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
729
Forks
65
PR merge metrics
No merged PRs in 30d

Description

I used `asdf global python system`; I have pip installed in `~/.local`:

```
$ pip -V
pip 19.0.1 from /home/roger/.local/lib/python2.7/site-packages/pip (python 2.7)
```

But when I change to a directory which uses a `local` python version (2.7.15), `pip` no longer works:

```
$ cd src/foo
$ pip -V
Traceback (most recent call last):
File "/home/roger/.asdf/installs/python/2.7.15/bin/pip", line 7, in
from pip import main
ImportError: cannot import name main
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.