question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: ERROR: Could not find a version that matches requirements-txt

See original GitHub issue
$ pipenv --support

Pipenv version: '2018.11.26'

Pipenv location: '/Users/ghalyahalansari/anaconda3/lib/python3.7/site-packages/pipenv'

Python location: '/Users/ghalyahalansari/anaconda3/bin/python'

Python installations found:

  • 3.7.1: /Users/ghalyahalansari/anaconda3/bin/python3
  • 3.7.0: /Users/ghalyahalansari/anaconda3/bin/pythonw
  • 3.7.0: /usr/local/bin/python3
  • 3.7.0: /usr/local/bin/python3.7m
  • 3.5.5: //anaconda/bin/python3
  • 3.5.4: //anaconda/bin/pythonw
  • 2.7.15: /usr/local/bin/python
  • 2.7.15: /usr/local/bin/pythonw
  • 2.7.10: /usr/bin/python
  • 2.7.10: /usr/bin/pythonw
  • 2.7.10: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.1',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '18.2.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST '
                     '2018; root:xnu-4903.241.1~1/RELEASE_X86_64',
 'python_full_version': '3.7.1',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  • TERM_SESSION_ID
  • SSH_AUTH_SOCK
  • Apple_PubSub_Socket_Render
  • COLORFGBG
  • ITERM_PROFILE
  • XPC_FLAGS
  • LANG
  • PWD
  • SHELL
  • TERM_PROGRAM_VERSION
  • TERM_PROGRAM
  • PATH
  • COLORTERM
  • TERM
  • HOME
  • TMPDIR
  • USER
  • XPC_SERVICE_NAME
  • LOGNAME
  • __CF_USER_TEXT_ENCODING
  • ITERM_SESSION_ID
  • SHLVL
  • OLDPWD
  • ZSH
  • PAGER
  • LESS
  • LSCOLORS
  • LC_CTYPE
  • CONDA_SHLVL
  • CONDA_DEFAULT_ENV
  • CONDA_EXE
  • CONDA_PREFIX
  • CONDA_PROMPT_MODIFIER
  • CONDA_PYTHON_EXE
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /Users/ghalyahalansari/anaconda3/bin:/anaconda3/bin://anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  • SHELL: /bin/zsh
  • LANG: en_US.UTF-8
  • PWD: /Users/ghalyahalansari/Development/env11/task_11

Contents of Pipfile (‘/Users/ghalyahalansari/Development/env11/task_11/Pipfile’):

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
certifi = "==2018.4.16"
chardet = "==3.0.4"
defusedxml = "==0.5.0"
django-allauth = "==0.36.0"
django-crispy-forms = "==1.7.2"
idna = "==2.7"
oauthlib = "==2.1.0"
python3-openid = "==3.1.0"
pytz = "==2018.3"
requests = "==2.19.1"
requests-oauthlib = "==1.0.0"
urllib3 = "==1.23"
Django = "==2.0.4"
Pillow = "==6.0.0"
requirements-txt = "*"

[requires]
python_version = "3.7"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
SimonkNetappcommented, Apr 27, 2020

So i had typed pipenv install requirements.txt instead of pipenv install -r requirements.txt which installed requirements-txt and that does not exist. I simply forgot the -r Flag.

SOLUTION: To fix this i removed the environment.

pipenv --rm Yes it is “–rm” not “-rm”

and deleted the Pipfile and Pipfile.lock from my Workspace. There should be no “requirements-txt = “*”” in your requirements.txt file.

pipenv shell

Hope this helps anyone 😉

1reaction
tanujnotescommented, Sep 20, 2019

I had installed Python 3.7.4 using pyenv and I don’t fully understand the reason but my Pipfile had this line in package list

[packages]
3-7-4 = "*"

Removing the 3-7-4 line fixed the issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix pipenv error: Could not find a version that matches?
2 Answers 2 · remove Pipefile.lock · run pipenv --rm (to remove the pipenv shell I was in) · run pip install pipenv...
Read more >
Could not find a version that satisfies the requirement X
The error "Could not find a version that satisfies the requirement" is commonly caused when we try to pip install a built-in Python...
Read more >
inveniosoftware/invenio-saml - Gitter
Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: ERROR: Could not find a version that matches invenio-saml No...
Read more >
Fix the pip error: Couldn't find a version that satisfies the ...
The package is not present on PyPI server. In this case pip will not work. So you'll have to download and install the...
Read more >
Build failed using pipenv - Binder - Jupyter Community Forum
For a reason that I don't understand, I'm unable to build the Binder … ... 'ERROR: Could not find a version that satisfies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found