Python 3.x 我刚刚使用conda将python从3.6更新到了3.7,现在conda没有';行不通
更新到python3.7后,conda不再工作:Python 3.x 我刚刚使用conda将python从3.6更新到了3.7,现在conda没有';行不通,python-3.x,conda,Python 3.x,Conda,更新到python3.7后,conda不再工作: DN0a22955d:~ harryemeric$ conda list \Traceback (most recent call last): File "/Users/harryemeric/anaconda3/bin/conda", line 12, in <module> from conda.cli import main ModuleNotFoundError: No module named 'conda'
DN0a22955d:~ harryemeric$ conda list
\Traceback (most recent call last):
File "/Users/harryemeric/anaconda3/bin/conda", line 12, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'
要点的可能重复之处在于,除了次要版本(即3.6.*在您的情况下)之外,您不应该真正使用conda
来更新base env中的Python。如果您确实需要升级基本Python,那么就有了(对不起,我找不到适用于3.7的新版本)。
source ~/.bashrc
# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
# added by Anaconda3 5.0.0 installer
export PATH="/Users/harryemeric/anaconda3/bin:$PATH"
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH