首页 > 解决方案 > Conda - 将 python3 版本更改为 3.6.8

问题描述

(myenv) C:\Users\enlig\Downloads>python --version
Python 3.6.8 :: Anaconda, Inc.

(myenv) C:\Users\enlig\Downloads>python3 --version
Python 3.9.7

我也想将我的 python3 版本更改为 3.6.8,我该怎么做?

因此,仅在某些情况下,我将环境激活为:

conda create -n myenv python=3.6.8

并认为我也可以对 python3 做同样的事情:

conda create -n myenv1 python3=3.6.8

但这给出了这个错误:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python3=3.6.8

标签: pythonpython-3.xanacondacondavirtual-environment

解决方案


推荐阅读