How to get Conda and Virtualenv to work on mac OS Catalina?
I have the exact same problem and this works for me:
After you move anaconda from "Relocated Items" to ~/anaconda3
, edit the first line of ~/anaconda3/bin/conda
file from #!/anaconda3/bin/python
to #!/Users/USERNAME/anaconda3/bin/python
to reflect the change.
I would probably abstain from using the above solution. That ~/anaconda3/bin
directory has lots of runnables (not just the conda
one) that would need to be altered in this manual way. For example, unless you make the same change you cannot run jupyter notebook
either, neither from base
nor from other envs you might have.
My tip: Try getting a requirements file for your virtual envs, and do a fresh installation. You could use pipreqs
to get the requirements used for individual projects: https://www.idiotinside.com/2015/05/10/python-auto-generate-requirements-txt/