首页 > 解决方案 > conda环境应该是python3.5,但是使用python 2.7

问题描述

我使用特定版本的 python (3.5) 创建了一个 conda 环境,如下所示:

conda create --name py35 python=3.5

然后我激活它,然后输入“python”,我得到 Python 2.7.16。这应该发生吗?我以为我会得到 Python 3.5。我尝试输入“python3”或“python3.5”,但都不起作用。我将如何打开 python 解释器?

(py35) C:\Users\bosr>python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 15:42:17) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
(py35) C:\Users\bosr>python3
'python3' is not recognized as an internal or external command,
operable program or batch file.
(py35) C:\Users\bosr>python35
'python35' is not recognized as an internal or external command,
operable program or batch file.
(py35) C:\Users\bosr>python3.5
'python3.5' is not recognized as an internal or external command,
operable program or batch file.
(py35) C:\Users\bosr>python3
'python3' is not recognized as an internal or external command,
operable program or batch file.

请给我看光。谢谢。

标签: pythoncondaenvironment

解决方案


推荐阅读