[PYTHON] Wenn die pyenv-Unterstützung von Pipenv (automatische Versionsinstallation) nicht funktioniert

Ich bin süchtig danach, also mach dir eine Notiz. Die Geschichte von 20191209.

tl;dr Wenn es so aussieht

$ pipenv sync
Warning: Python 3.7 was not found on your system…
Would you like us to install CPython 3.7.5 with pyenv? [Y/n]: Y
Installing CPython 3.7.5 with pyenv (this may take a few minutes)…
✔ Success!

Warning: The Python you just installed is not available on your PATH, apparently.

Das ist OK: ok_hand:

pip install --user pipenv==v2018.7.1
pip install pip==18.0

Pipenv pyenv Unterstützung

Pipenv hat [eine Funktion, die automatisch die in der Pipfile beschriebene Version installiert, wenn pyenv installiert ist](https://pipenv.kennethreitz.org/en/latest/advanced/#automatic-python- Es ist Installation).

Es scheint jedoch, dass es im Moment [aktuell (v2018.11.26)] defekt ist (https://github.com/pypa/pipenv/releases/tag/v2018.11.26). issue: Pyenv support broken #3551

Wenn ich es versuche, sieht es so aus und es steht Erfolg, aber es funktioniert nicht richtig.

$ pipenv sync
Warning: Python 3.7 was not found on your system…
Would you like us to install CPython 3.7.5 with pyenv? [Y/n]: Y
Installing CPython 3.7.5 with pyenv (this may take a few minutes)…
✔ Success!

Warning: The Python you just installed is not available on your PATH, apparently.

Verringern Sie die Version von Pipenv

Im Kommentar des Problems sind Kommentare wie "Es funktioniert, wenn Sie den Hauptzweig verwenden" oder "Es funktioniert, wenn Sie die Version verringern" enthalten. Daher habe ich versucht, die Version zu verringern.

$ pip install --user pipenv==v2018.7.1
...
Successfully installed pipenv-2018.7.1

Diesmal hörte Pipenv selbst auf zu arbeiten.

$ pipenv sync
...
TypeError: 'module' object is not callable

Senken Sie auch die Version von pip

Da ich Pipenv herabgestuft habe, muss ich auch die entsprechende Pip-Version senken. issue: pip 18.1 causes "TypeError: 'module' object is not callable" #2924

$ pip install pip==18.0
...
Successfully installed pip-18.0

Das hat funktioniert: thumbsup:

$ pipenv sync
...
All dependencies are now up-to-date!

Das Schloss bricht jedoch

issue: Running pipenv gives TypeError: 'module' object is not callable #2871

Es ist schwer. Derzeit arbeiten wir beim Versionswechsel. Es ist schwer.

$ pip install --user pipenv==v2018.11.26

Serpentin

Es scheint, dass das Problem, dass Pipenv schon lange veröffentlicht wurde, unter diesem Problem diskutiert wird. Viel Glück ~ ~: Muskel:

Recommended Posts

Wenn die pyenv-Unterstützung von Pipenv (automatische Versionsinstallation) nicht funktioniert
Wenn send_keys nicht funktioniert
Wenn dropbox-sdk-python nicht funktioniert
Wenn matplotlib nicht mit python2.7 funktioniert
pyenv funktioniert nicht mit tcl-tk, das von homebrew installiert wurde.