I am trying to run a python script that executes few API calls and Kafka logic but getting following error: dyld: Library not loaded: @executable_path/../.Python>
dyld: Library not loaded: @executable_path/../.Python>
The issue is related to hombrew Python installs/upgrade.
Anyone who is using pipenv (and you should!) can simply use these two commands — without having the venv activated:
rm -rf `pipenv --venv` # remove the broken venv pipenv install --dev # reinstall the venv from pipfile