Ich habe versucht, mit pipenv wie folgt zu installieren
pipenv install <package name>
Ich wurde wie folgt wütend.
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches request
[pipenv.exceptions.ResolutionFailure]: No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches request
No versions found
Was https://pypi.org/simple reachable?
Es scheint, dass die Ursache darin besteht, dass die SSL-Authentifizierung des von pipenv verwendeten Pip nicht erfolgreich ist. Sogar als ich normalerweise `` `pip install``` machte
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
Ich war wütend, also als vorläufige Maßnahme
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host <package name>
Es war trüb wie Tee, aber es scheint, dass pipenv die obige Option nicht hinzufügen kann
Dies kann gelöst werden, indem Sie die erforderlichen Einstellungen in der Pip-Konfigurationsdatei `` `pip.conf``` vornehmen. Für Mac
mkdir ~/.pip
vim ~/.pip/pip.conf
Wie
pip.conf
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
Du musst nur machen. Weitere Umgebungen finden Sie unter https://qiita.com/agajo/items/73d6f14855da703972e0.