conda support env+python version

lightsong發表於2024-07-29

Conda

https://docs.conda.io/projects/conda/en/latest/index.html

Conda Documentation

Welcome to conda's documentation! Conda provides package, dependency, and environment management for any language. Here, you will find everything you need to get started using conda in your own projects.

https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html

conda search python

conda create -n py39 python=3.9

https://www.bytezonex.com/archives/17.html

檢視可用的Python版本

要檢視conda可以安裝的Python版本的列表,您可以在終端視窗或Anaconda提示符中執行以下命令:

conda search --full-name python

這將列出所有名稱完全為python的包,以及它們的版本和構建資訊。例如:

# Name                       Version           Build  Channel       
python                         2.7.10               0  pkgs/free     
python                         2.7.10               1  pkgs/free     
python                         2.7.10               2  pkgs/free     
python                         2.7.11               0  pkgs/free     
python                         2.7.12               0  pkgs/free     
python                         2.7.12               1  pkgs/free     
python                         2.7.13               0  pkgs/free     
python                         2.7.14      h4a10d90_30  pkgs/main     
python                         2.7.14      h4a10d90_31  pkgs/main     
python                         2.7.14      h4a10d90_32  pkgs/main     
python                         2.7.15      h2880e7c_29  pkgs/main     
python                         2.7.15      h2880e7c_30  pkgs/main     
python                         2.7.15      h2880e7c_31  pkgs/main     
python                         2.7.15      h2880e7c_32  pkgs/main     
python                         2.7.15      h2880e7c_33  pkgs/main     
python                         2.7.15      h2880e7c_34  pkgs/main     
python                         2.7.15      h2880e7c_35  pkgs/main     
python                         2.7.15      h2880e7c_36  pkgs/main     
python                         2.7.15      h2880e7c_37  pkgs/main     
python                         2.7.15      h2880e7c_38  pkgs/main     
...

相關文章