The link is sharp with brew cleanup
app: source venv/bin/activate
[venv] app: python
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /path/to/app/venv/bin/python
Reason: image not found
** If you are using the venv
directory inside the application directory **
find ./.venv -type l -delete && python3 -m venv ./.venv
.venv
, specify the virtual environment directory as appropriate.** If you are using virtualenv
**
Relink of the guy who became like. All you have to do is unlink the ʻenvdirectory and relink with the
virtualenv` command.
find ./venv -type l -delete && virtualenv ./venv
It's annoying to relink one by one. You can update all at once by using virtualenvwrapper
as follows
workon | xargs -L 1 -t -P 4 -I % -- sh -c 'find $WORKON_HOME/% -type l -delete && virtualenv $WORKON_HOME/%'
-P 4
s to the number of virtualenv
s that are created and process them in parallel.Recommended Posts