python - 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.
请给我看光。谢谢。
解决方案
推荐阅读
- python - 在 PyQt6 中使用 QEasingCurve 时出现属性错误
- swiftui - SwiftUI 让 AVCaptureVideoPreviewLayer 与 xStacks 配合得很好
- swift - Swift 是否有等同于 Rust 的 struct update 语法?
- python - 从 python 函数创建对象返回一个类
- c# - Android Assets 文件夹无法识别
- flutter - 未为类“对象”定义运算符“[]”
- razorpay - Razorpay 订阅与 Razorpay 订单
- reactjs - 在反应中将我的受保护路由分离到不同文件的简单方法
- azerothcore - 运行 CMake 后未加载 Visual Studio 解决方案且没有错误
- visual-studio-code - 如何使用 Rust 程序禁用 VS 代码中的提示行?