For example, when the following error occurs
$ pipenv run ./manage.py shell
Loading .env environment variables…
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /Users/zenwerk/.virtualenvs/some-project/bin/python
Reason: image not found
/bin/sh: line 1: 10581 Abort trap: 6 pipenv run ./manage.py shell
make: *** [shell] Error 134
In the directory where Pipfile
is located, recreate the environment by following the steps below.
#Erase the existing environment without asking questions
$ PIPENV_IGNORE_VIRTUALENVS=1 pipenv --rm
#Recreate the pipenv environment
$ pipenv sync
Creating a virtualenv for this project…
Pipfile: /Users/zenwerk/src/some-project/Pipfile
Using /usr/local/Cellar/pipenv/2018.11.26_2/libexec/bin/python3.7 (3.7.5) to create virtualenv…
⠏ Creating virtual environment...Already using interpreter /usr/local/Cellar/pipenv/2018.11.26_2/libexec/bin/python3.7
#Dependency reinstallation
$ pipenv install --dev
Recommended Posts