asdf-community / asdf-community/asdf-python
pip - ImportError: cannot import name main
- Langage dominant
- Shell
- Étoiles
- 730
- Forks
- 65
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par reproduire le problème avec `asdf global python system`, `pip -V` et un répertoire utilisant Python 2.7.15. Examinez comment le plugin Python sélectionne ou génère le point d’entrée de `pip` à `/home/roger/.asdf/installs/python/2.7.15/bin/pip` ; le travail est terminé lorsque `pip -V` fonctionne aussi bien en dehors que dans un répertoire utilisant une version locale de Python.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100