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.

Pipenv not recognized

See original GitHub issue

Issue description

Pipenv works when you just install it. However, after rebooting PC (I’m on Windows), it no longer works.

Expected result

I expect the python shell command to work every time.

Actual result

pipenv shell 'pipenv' is not recognized as an internal or external command, operable program or batch file.

Steps to replicate

1/CD to folder with pipfile 2/In CMD: pip install pipenv (installs fine) 3/In CMD: pipenv shell (works fine)

RESTART COMPUTER

1/Go to same directory 2/pipenv shell --> FAILS with message I pasted in “Actual Result”

Content Pipfile:

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

[packages]

[dev-packages]

[requires]
python_version = "3.7"


Please run $ pipenv --support, and paste the results here. Don’t put backticks (`) around it! The output already contains Markdown formatting.

I can not. It says:

'pipenv' is not recognized as an internal or external command,
operable program or batch file.

I checked the PATH and I have both Python as the Scripts location added there. When I run pipenv install after the above, it says it is already installed:

Requirement already satisfied: pipenv in c:\users\kevin\appdata\local\programs\python\python37-32\lib\site-packages (2018.10.13) Requirement already satisfied: certifi in c:\users\kevin\appdata\local\programs\python\python37-32\lib\site-packages (from pipenv) (2018.8.24) Requirement already satisfied: setuptools>=36.2.1 in c:\users\kevin\appdata\local\programs\python\python37-32\lib\site-packages (from pipenv) (39.0.1) Requirement already satisfied: virtualenv in c:\users\kevin\appdata\local\programs\python\python37-32\lib\site-packages (from pipenv) (16.0.0) Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\users\kevin\appdata\local\programs\python\python37-32\lib\site-packages (from pipenv) (0.3.0) Requirement already satisfied: pip>=9.0.1 in c:\users\kevin\appdata\local\programs\python\python37-32\lib\site-packages (from pipenv) (18.1)

When I remove virtualenv & pipenv and then reinstall pipenv, it works again until the next time I reboot my computer.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
susanqiaocommented, Apr 4, 2019

@ KayJay89 the solution worked for me. Thank you!

0reactions
chilledblitzcommented, Sep 11, 2021

Refer https://stackoverflow.com/questions/46041719/windows-reports-error-when-trying-to-install-package-using-pipenv/46041892#46041892 Solution with highest upvotes

  1. First, remove your current version of virtualenv: pip uninstall virtualenv
  2. Then, remove your current version of pipenv: pip uninstall pipenv
  3. When you are asked Proceed (y/n)? just enter y. This will give you a clean slate.
  4. Finally, you can once again install pipenv and its dependencies: pip install pipenv
  5. Check installation with pipenv --version
Read more comments on GitHub >

github_iconTop Results From Across the Web

'pipenv' is not recognized as an internal or external command ...
Go to Advanced System Settings in Control Panel · Click on Environmental Variables · Under System Variables Look for PATH (If you don't...
Read more >
How to fix error 'pipenv' is not recognized as an internal or ...
First, remove your current version of virtualenv: pip uninstall virtualenv · Then, remove your current version of pipenv: pip uninstall pipenv ...
Read more >
pipenv is not recognized as an internal or external command
The error "'pipenv' is not recognized as an internal or external command, operable program or batch file" occurs when we forget to install ......
Read more >
How To Install pipenv Tool on Windows - Python Tutorial
However, if you see the following message: pipenv shell 'pipenv' is not recognized as an internal or external command, operable program or batch...
Read more >
Can't make pipenv work in cmd - Python - Codecademy Forums
Looks like the location of pipenv is not in your PATH environment variable. ... After doing that, the command should be recognized.
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