I have Conda 4.7.11 and system python 3.7.3 (base) on MacBook. Whenever I try to install new packages on the environment that I have created, Conda installs them on the base instead.
I have activated the environment and when I type python
on the Terminal, I get the correct python version of my env (3.6.9). Also, which python
points me to the correct python path: /anaconda3/envs/Bayesian_Models/bin/python
But, if I type conda info
, when my env is active, then I get this (python 3.7.3):
I'm not sure how to fix the issue permanently, but specifying the env using the --name|-n
tag could get around the problem:
conda install -n Bayesian_Models foo_package
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.