安装Anaconda3后,如何在Windows 10的我的路径目录中声明python 3.7?

问题描述 投票:1回答:1

我已经安装了Python 3.7随附的Anaconda3(2019)。

但是,当我从cmd python运行时,系统会通知我运行Python 3.6.5:

(base) C:\WINDOWS\system32>python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

我已经在我的Path变量中声明了Anaconda3:

enter image description here

python.exe包含在无法在我的路径中声明的目录中:

enter image description here

enter image description here

您的建议将不胜感激。

================================================ =============================

Anaconda3下的目录如下:

enter image description here

这里没有bins子目录。

但是有一个python.exe文件:

enter image description here

我已经在Path变量中声明了它的路径:

enter image description here

python anaconda
1个回答
0
投票

对于anaconda3,python的路径为:用/anaconda3/bin/python代替/anaconda3/pkgs/...(就像您所做的那样)。尝试前一个。

此外,更改路径后,请确保您restart终端。

注意:您始终可以在终端中使用which python检查python的位置。

© www.soinside.com 2019 - 2024. All rights reserved.