I tried to install using pipenv as follows
pipenv install <package name>
I got angry as follows.
[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?
It seems that the cause is that the SSL authentication of pip used by pipenv is not successful. Even when I was doing `` `pip install``` normally
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
I was angry, so as a provisional measure
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host <package name>
It was cloudy as tea, but it seems that pipenv can not add the above option
This can be solved by making the necessary settings in the pip configuration file `` `pip.conf```. For Mac
mkdir ~/.pip
vim ~/.pip/pip.conf
As
pip.conf
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
You just have to make. For other environments, see https://qiita.com/agajo/items/73d6f14855da703972e0 for reference.
Recommended Posts