Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 我刚刚使用conda将python从3.6更新到了3.7,现在conda没有';行不通_Python 3.x_Conda - Fatal编程技术网

Python 3.x 我刚刚使用conda将python从3.6更新到了3.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'

更新到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'
要点的可能重复之处在于,除了次要版本(即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