Anaconda: cannot find packages when calling Python interpreter from outside the shell

前端 未结 3 1006
你的背包
你的背包 2021-01-21 23:15

I have two Anaconda environments:

  • The base environment
  • An R environment (containing R only)

The base environment is the default environme

相关标签:
3条回答
  • 2021-01-21 23:32

    Have you tired activating the environments with a stack config? This allows my applications to use two different environments at the same time with different Python versions on each.

    conda activate base && conda activate --stack myEnv
    
    0 讨论(0)
  • 2021-01-21 23:41

    I had the same issue as yours, so I used the following command under "Run as Administrator" in my command prompt, and everything works fine thereafter

    set CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1
    
    0 讨论(0)
  • 2021-01-21 23:47

    You can conda activate myEnvName. Then, calling python on shell will bring you the desired python. When installing packages, always select in which environment you wish it to be installed. The default environment is base

    0 讨论(0)
提交回复
热议问题