anaconda/conda - install a specific package version

后端 未结 3 2053
Happy的楠姐
Happy的楠姐 2020-12-04 15:05

I want to install the \'rope\' package in my current active environment using conda. Currently, the following \'rope\' versions are available:

(data_download         


        
3条回答
  •  难免孤独
    2020-12-04 15:29

    If any of these characters, '>', '<', '|' or '*', are used, a single or double quotes must be used

    conda install [-y] package">=version"
    conda install [-y] package'>=low_version, <=high_version'
    conda install [-y] "package>=low_version, =0.3.0"
    conda install  openpyxl'>=2.4.10,<=2.6.0'
    conda install "openpyxl>=2.4.10,<3.0.0"
    

    where option -y, --yes Do not ask for confirmation.

    Here is a summary:

    Format         Sample Specification     Results
    Exact          qtconsole==4.5.1         4.5.1
    Fuzzy          qtconsole=4.5            4.5.0, 4.5.1, ..., etc.
    >=, >, <, <=  "qtconsole>=4.5"          4.5.0 or higher
                   qtconsole"<4.6"          less than 4.6.0
    
    OR            "qtconsole=4.5.1|4.5.2"   4.5.1, 4.5.2
    AND           "qtconsole>=4.3.1,<4.6"   4.3.1 or higher but less than 4.6.0
    

    Potion of the above information credit to Conda Cheat Sheet

    Tested on conda 4.7.12

提交回复
热议问题