簡體   English   中英

conda search -f python 中沒有可用的 Python 3.6

[英]No Python 3.6 available in conda search -f python

如果我運行:

conda search -f python 

沒有 Python <3.8 可用...我怎樣才能得到它?

我得到的輸出如下:

python                         3.8.5 h05baefb_8_cpython  conda-forge         
python                         3.8.6 h12cc5a1_1_cpython  conda-forge         
python                         3.8.6 h12cc5a1_2_cpython  conda-forge         
python                         3.8.6 h12cc5a1_3_cpython  conda-forge         
python                         3.8.6 h12cc5a1_4_cpython  conda-forge         
python                         3.8.6 h12cc5a1_5_cpython  conda-forge         
python                         3.8.6 h3098bc4_0_cpython  conda-forge         
python                         3.8.8 h12cc5a1_0_cpython  conda-forge         
python                        3.8.10 h69cb8a9_0_cpython  conda-forge         
python                        3.8.10 hab31e5c_2_cpython  conda-forge         
python                        3.8.10 hf9733c0_1_cpython  conda-forge         
python                        3.8.12 hab31e5c_0_cpython  conda-forge         
python                        3.8.12 hab31e5c_1_cpython  conda-forge         
python                        3.8.12 hab31e5c_2_cpython  conda-forge         
python                        3.8.12 hab31e5c_3_cpython  conda-forge         
python                        3.8.12 hd949e87_1_cpython  conda-forge         
python                        3.8.12 hd949e87_2_cpython  conda-forge         
python                        3.8.12 hd949e87_3_cpython  conda-forge         
python                        3.8.13 h7e095e3_0_cpython  conda-forge         
python                        3.8.13 hd3575e6_0_cpython  conda-forge         
python                         3.9.0 h4b4120c_5_cpython  conda-forge         
python                         3.9.0 hd001b3a_0_cpython  conda-forge         
python                         3.9.0 hd001b3a_1_cpython  conda-forge         
python                         3.9.0 hd001b3a_2_cpython  conda-forge         
python                         3.9.0 hd001b3a_3_cpython  conda-forge         
python                         3.9.0 hf1b0709_4_cpython  conda-forge         
python                      3.9.1rc1 h4b4120c_0_cpython  conda-forge         
python                      3.9.1rc1 h4b4120c_1_cpython  conda-forge         
python                         3.9.1 h4b4120c_0_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_1_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_2_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_3_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_4_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_5_cpython  conda-forge         
python                         3.9.2 hcbd9b3a_0_cpython  conda-forge         
python                         3.9.4 h5b20da3_0_cpython  conda-forge         
python                         3.9.5 h54d631c_0_cpython  conda-forge         
python                         3.9.6 h54d631c_0_cpython  conda-forge         
python                         3.9.6 h54d631c_1_cpython  conda-forge         
python                         3.9.7 h54d631c_0_cpython  conda-forge         
python                         3.9.7 h54d631c_1_cpython  conda-forge         
python                         3.9.7 h54d631c_2_cpython  conda-forge         
python                         3.9.7 h54d631c_3_cpython  conda-forge         
python                         3.9.7 hc0da0df_3_cpython  conda-forge         
python                         3.9.9 h43b31ca_0_cpython  conda-forge         
python                         3.9.9 h70c1b39_0_cpython  conda-forge         
python                        3.9.10 h38ef502_0_cpython  conda-forge         
python                        3.9.10 h38ef502_1_cpython  conda-forge         
python                        3.9.10 h38ef502_2_cpython  conda-forge         
python                        3.9.10 hd16f9c5_0_cpython  conda-forge         
python                        3.9.10 hd16f9c5_1_cpython  conda-forge         
python                        3.9.10 hd16f9c5_2_cpython  conda-forge         
python                        3.9.12 h14b404e_1_cpython  conda-forge         
python                        3.9.12 hfc7342c_1_cpython  conda-forge         
python                        3.9.13 h96fcbfb_0_cpython  conda-forge         
python                        3.9.13 hc596b02_0_cpython  conda-forge         
python                        3.10.0 h43b31ca_1_cpython  conda-forge         
python                        3.10.0 h43b31ca_2_cpython  conda-forge         
python                        3.10.0 h43b31ca_3_cpython  conda-forge         
python                        3.10.0 h70c1b39_1_cpython  conda-forge         
python                        3.10.0 h70c1b39_2_cpython  conda-forge         
python                        3.10.0 h70c1b39_3_cpython  conda-forge         
python                        3.10.1 h43b31ca_0_cpython  conda-forge         
python                        3.10.1 h43b31ca_1_cpython  conda-forge         
python                        3.10.1 h43b31ca_2_cpython  conda-forge         
python                        3.10.1 h70c1b39_0_cpython  conda-forge         
python                        3.10.1 h70c1b39_1_cpython  conda-forge         
python                        3.10.1 h70c1b39_2_cpython  conda-forge         
python                        3.10.2 h38ef502_1_cpython  conda-forge         
python                        3.10.2 h38ef502_2_cpython  conda-forge         
python                        3.10.2 h38ef502_3_cpython  conda-forge         
python                        3.10.2 h38ef502_4_cpython  conda-forge         
python                        3.10.2 h43b31ca_0_cpython  conda-forge         
python                        3.10.2 h70c1b39_0_cpython  conda-forge         
python                        3.10.2 hd16f9c5_1_cpython  conda-forge         
python                        3.10.2 hd16f9c5_2_cpython  conda-forge         
python                        3.10.2 hd16f9c5_3_cpython  conda-forge         
python                        3.10.2 hd16f9c5_4_cpython  conda-forge         
python                        3.10.4 h14b404e_0_cpython  conda-forge         
python                        3.10.4 hfc7342c_0_cpython  conda-forge         
python                        3.10.5 h4eee789_0_cpython  conda-forge         
python                        3.10.5 h71ab1a4_0_cpython  conda-forge   

這就是我所看到的。 您可能想要添加一些頻道並使用conda search python

$ conda search python
Loading channels: done
# Name                       Version           Build  Channel             
python                         1.0.1               0  conda-forge         
python                           1.2               0  conda-forge         
...
python                      3.6.0rc1               0  conda-forge         
python                         3.6.0               0  conda-forge         
python                         3.6.0               1  conda-forge   
...      
python                        3.6.13 haf480d7_1_cpython  conda-forge         
python                        3.6.13 haf480d7_2_cpython  conda-forge         
python                        3.6.15 haf480d7_0_cpython  conda-forge         
python                         3.7.0   h145921a_1002  conda-forge         
python                         3.7.0   h145921a_1003  conda-forge         
python                         3.7.0   h145921a_1004  conda-forge  
...
   
python                        3.10.5 hdaaf3db_0_cpython  conda-forge         
python                        3.10.5 hdd68b96_0_cpython  conda-forge       
$ cat ~/.condarc
channels:
  - conda-forge
  - bioconda
  - defaults

筆記:

您還可以搜索確切的版本,例如:

$ conda search 'python=3.6'
Loading channels: done
# Name                       Version           Build  Channel             
python                       3.6.0a3               0  conda-forge         
python                       3.6.0a4               0  conda-forge         
...
python                        3.6.13 haf480d7_2_cpython  conda-forge         
python                        3.6.15 haf480d7_0_cpython  conda-forge    

正如這個答案中所解釋的,Conda 僅在osx-arm64平台上支持 Python 3.8+。 但是,您仍然可以創建osx-64環境,並且這些環境將(無縫)在仿真中運行。

搜索替代平台,可以使用--subdir, --platform參數指定:

conda search --subdir osx-64 python=3.6

或者通過CONDA_SUBDIR環境變量臨時設置subdir配置:

CONDA_SUBDIR=osx-64 conda search python=3.6

參閱其他問題,了解如何使用這些版本創建環境

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM