pipenv: ERROR: Could not find a version that matches requests
I ran:
$ mkdir test
$ cd test
$ pipenv install requests
but this caused the following error:
ERROR: ERROR: Could not find a version that matches requests
No versions found
Was https://pypi.org/simple reachable?
I thought this problem is due to proxy, but the following successfully run.
$ pip install requests
Please help me…
$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/home/tamura/.local/lib/python3.5/site-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:
3.5.2:/usr/bin/python32.7.12:/usr/bin/python2.73.6.8:/home/tamura/my_path/anaconda3/envs/smiles/bin/python3.7.2:/home/tamura/my_path/anaconda3/bin/python3.7m3.5.2:/usr/bin/python3.5m
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.5.2',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '4.4.0-21-generic',
'platform_system': 'Linux',
'platform_version': '#37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016',
'python_full_version': '3.5.2',
'python_version': '3.5',
'sys_platform': 'linux'}
System environment variables:
https_proxySHLVLBYOBU_ULIMITno_proxyPYTHONDONTWRITEBYTECODESHELL_TYPEIGNOREEOFHOMETERMUNZIPSUPPRESS_BRANCH_TIMEOUT_MESSAGEUPDATE_COMPLETIONS_ON_KEYPRESSLANGBYOBU_TIMELS_COLORSBYOBU_LIGHTUPDATE_PROMPT_ON_KEYPRESSXONSH_AUTOPAIRGTK_IM_MODULEBYOBU_SEDQT_IM_MODULEXONSH_LOGINBYOBU_READLINKLESSOPENBYOBU_DISTROBYOBU_CHARMAPBYOBU_PYTHON_PATHSSH_CLIENThttp_proxyBASH_COMPLETIONSBYOBU_WINDOW_NAMERIGHT_PROMPTZIPINFOINDENTTMUX_PANECONDA_PREFIXGTK_MODULESBYOBU_RUN_DIRTMUXSHELLBYOBU_ACCENTXONSHRC_DEFAULT_CONDA_PATHBYOBU_CONFIG_DIRLOADED_RC_FILESPYTHONFINDER_IGNORE_UNSUPPORTEDNVM_DIRXDG_RUNTIME_DIRBOTTOM_TOOLBARLOGNAMEPIP_PYTHON_PATHCONDA_DEFAULT_ENVVI_MODENVM_CD_FLAGSPIP_SHIMS_BASE_MODULENVM_BINVISUALJUPYTER_PATHPIP_DISABLE_PIP_VERSION_CHECKBYOBU_DATEBYOBU_DARKXDG_SESSION_IDBYOBU_PAGERQT_QPA_PLATFORMTHEMEXONSH_INTERACTIVESSH_CONNECTIONOLDPWDPWDUSERPYTHONPATHBYOBU_BACKENDMAILBYOBU_PREFIXXONSH_VERSIONXMODIFIERSXONSH_SHOW_TRACEBACKXDG_DATA_DIRSSSH_TTYBYOBU_TTYAUTO_CDLESSCLOSECONDA_SHLVLBYOBU_HIGHLIGHTCASE_SENSITIVE_COMPLETIONSDISPLAYCONDA_EXE
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH:/home/tamura/my_path/anaconda3/envs/smiles/bin:/home/tamura/.nvm/versions/node/v11.9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/tamura/my_path/bin/:/usr/local/cuda/lib64/:/usr/local/cuda/bin/:/home/tamura/my_path/anaconda3/envs/main/bin/:/home/tamura/my_path/bin/:/usr/local/cuda/lib64/:/usr/local/cuda/bin/:/home/tamura/.local/bin:/home/tamura/my_path/anaconda3/binSHELL:/bin/bashLANG:ja_JP.UTF-8PWD:/home/tamura/work/test
Contents of Pipfile (‘/home/tamura/work/test/Pipfile’):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
requests = "*"
[requires]
python_version = "3.7"
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 17 (4 by maintainers)
These steps solved similar issue I had recently:
Delete the virtual environment and pipfile(s)
then reinstall project dependencies
$ pipenv install package1 package2 package3Why is this issue closed? This is still an issue on Windows. Are there any fixes for WINDOWS machines? Thanks.
I had a similar issue when I tried to create a new project. The workaround I found was to write the Pipfile myself:
This issue occured for me when I installed a brew package that installed a new version of python on my machine (3.8 vs 3.7.x which I was using)
When it did this it broke the OpenSSL installation that pip was using. This was the reason that it could not find any versions on pip.
I ended up having to reinstall python with:
brew reinstall pythonThis StackOverflow answer helps give more details on this for others:
https://stackoverflow.com/a/59280089/1327815