Packages missing from Conda environment (Mac OS)

Hi,

 

I tried setting up PyCharm with Anaconda (Python 3.7). Even after a fresh install, and using PyCharm with Anaconda Plugin, I cannot create a conda environment that has all my currently installed packages. When I try to use any package, I have to install it in the environment, but I have already installed it on my system. I followed the steps to set up the conda virtual environment for all projects to no avail.

Any suggestions?

0
2 comments
Avatar
Permanently deleted user

I found a solution (workaround).

  1. Create a new virtual environment instead of a conda environment
  2. Select python from the conda folder, for me it is
    ~/opt/anaconda3/bin/python3.7
  3. Check "Inherit global-site packages"
  4. Optional: check "Make available to all projects"

From what I gathered, it is a widespread problem and different workarounds work for different people. Probably the devs should look into it.

0

https://stackoverflow.com/questions/35835274/how-to-reuse-global-site-packages-in-conda-env

I would recommend keeping each conda environment separate and not using venv in conda.

0

Please sign in to leave a comment.