I created and activated a conda environment with python 3.8. When calling python it systematically runs Python version 2.7 instead of 3.8. (base) $ conda create -n py38 python=3.8
Solution 1:
You need to make sure when you are in (py38) by :
echo$PATH
that /Users/xyz/opt/anaconda3/envs/py38/bin is before /usr/bin
then run
cd /Users/xyz/opt/anaconda3/envs/py38/bin
ln -fs python3.8 python3
ln -fs python3 python
Share
Post a Comment
for "Python Running Version 2.7 Despite In A Conda 3.8 Environment"
Post a Comment for "Python Running Version 2.7 Despite In A Conda 3.8 Environment"