pipenv shell is no longer available ... what to do?

The pipenv shell has stopped working. What should I do now?

Voice of the heart

No, this is my first time lol

pipenv shell

If you do

Traceback (most recent call last):
  File "/usr/local/Cellar/pipenv/2020.6.2/libexec/bin/pipenv", line 5, in <module>
    from pipenv import cli
ModuleNotFoundError: No module named 'pipenv'

What? I'm not sure about small errors, so the method I tried was successful, so I'll describe it.

Solution

Step 1

What is pipenv for the time being? That's why

brew list

Then you're in your own environment, right?

Step 2

I thought I'd try to put it back in for the time being

brew reinstall pipenv

Then

==> Downloading https://homebrew.bintray.com/bottles/pipenv-2020.6.2.catalina.bottle.tar.gz
Already downloaded: /Users/hoge/Library/Caches/Homebrew/downloads/4d0e7223005e0a1d0846471afb6356cb634de5855ad4102613aa6b0cc94c3bbc--pipenv-2020.6.2.catalina.bottle.tar.gz
==> Reinstalling pipenv 
==> Pouring pipenv-2020.6.2.catalina.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions

Successful reinstallation normally. .. ..

again

pipenv shell

Then

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Launching subshell in virtual environment…
 . /Users/hoge/.local/share/virtualenvs/hoge-hogehoge/bin/activate  

Will it work normally? I wonder why it suddenly stopped working ...

bonus

By reinstalling pipenv, the Warning </ font> that appeared on Terminal in jupyter notebook is no longer displayed.

Thank you for watching till the end! !!

Recommended Posts

pipenv shell is no longer available ... what to do?
What to do if you can't pipenv shell
What to do if Linux VLC can no longer rotate
What to do if the Pipenv environment is corrupted by updating Homebrew
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if you get a "No versions found" error in pipenv
curl: (60) What to do when Issuer certificate is invalid.
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if pyenv is not enabled (zsh)
[Python] What to do when No module named'pyproj.datadir' appears when Exe is done with PyInstaller
What to do when Japanese is not displayed on matplotlib
What to do when PyCharm font is strange or garbled
Why django-import-export import is so slow and what to do
ImportError: No module What to do when you are told
What to do when there is no response due to Proxy setting in Python web scraping
What to do when Ubuntu crashes
What to do with Magics install
What to do with PYTHON release?
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if the inode is exhausted on EC2 Linux
Folium's HeatMapWithTime is no longer plotted
What to do to get tensorflow-gpu to work
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do when the value type is ambiguous in Python?
What to do if there is a decimal in python json .dumps
What to do when the result downloaded via scrapy is in English
What to do if No Python documentation found for ... appears in pydoc
[Python] What to do when an error related to SSL authentication is returned
I tried to find out what I can do because slicing is convenient
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do when a warning message is displayed in pip list
[Pandas] What is set_option [How to use]
What to do after installing Linux (Ubuntu)
Let's summarize what you want to do.
bash: cannot create temp file for here-document: What to do when No space left on device is displayed
What to do if CERTIFICATE_VERIFY_FAILED occurs when nltk.download () is done on macOS pyhon
What to do if abort is displayed when inputting camera video in OpenCV
What to do when [Errno 2] No such file or directory appears in Python
[EC2] What to do when selenium is stuck and processing does not proceed
What to do if Japanese language support is not completely installed on Ubuntu 16.04
What to do if (base) is displayed at the beginning of the Mac terminal
What to do if pipreqs results in UnicodeDecodeError
[Python] What I did to do Unit Test
Note: What to do if pip install fails
[For beginners] What to do after installing Anaconda
What to do if pip cannot be installed
What to do when PermissionError of tempfile.mkstemp occurs
I want to do pyenv + pipenv on Windows
What to do if atom autocomplete-python doesn't work
What to do to get google spreadsheet in python
What to do if Docker-sync suddenly stops working
[Introduction to Udemy Python 3 + Application] 54. What is Docstrings?
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do when is not in the sudoers file.This incident will be reported.
What to do if you get `No kernel for language python found` in Hydrogen
What to do if ENOENT: no such file or directory appears during npm install
What to do if the progress bar is not displayed in tqdm of python
What to do if Python IntelliSense is not displayed in VS Code on Windows