To install a specific package:
conda install <pkg>=<version>
eg:
conda install matplotlib=1.4.3
For more complex expressions, the relation can be quoted:
conda install "matplotlib>=1.4.3"
Alternatively, single quotes work on Unix shells but not Windows cmd:
conda install 'matplotlib>=1.4.3'
python - Install a specific (ana)conda package version - Stack Overflow
python - Conda: How can I update just the packages I specify in my command? - Stack Overflow
How do i update Anaconda to the latest version ?
Error while updating Anaconda
Videos
To install a specific package:
conda install <pkg>=<version>
eg:
conda install matplotlib=1.4.3
For more complex expressions, the relation can be quoted:
conda install "matplotlib>=1.4.3"
Alternatively, single quotes work on Unix shells but not Windows cmd:
conda install 'matplotlib>=1.4.3'
If any of these characters: ' ', '>', '<', '|', '*' are used, a single or double quotes must be used, e.g.:
conda install [-y] package">=version"
conda install [-y] package'>=low_version, <=high_version'
conda install [-y] "package>=low_version, <high_version"
conda install -y torchvision">=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 means: "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
Portion of the above information credit to Conda Cheat Sheet
Tested on conda 4.7.12.
Try conda install <package>. For example, if you want to update pandas, conda install pandas will check for the last version of the package, and if the package is already installed, it will be updated.
You can stop the dependencies update by disabling it in Anaconda. Details of this are explained here
You also need to pay attention to the official Note
Conda still ensures that dependency specifications are satisfied. Thus, some dependencies may still be updated or, conversely, this may prevent packages given at the command line from being updated to their latest versions. You can always specify versions at the command line to force conda to install a given version, such as conda install numpy=1.9.3.
You need to create a file .condarc in the home directory of the environment. then add this line.
update_dependencies: False
Details are here
Thereafter, you can install the package.
Sorry if this is not the correct place to ask - but how do i update my entire Anaconda distribution?
I don’t want to upgrade all my Anaconda packages … I just want to update my entire Anaconda distribution.
Running conda update —all says anaconda downgraded to custom_py38 - from prior experience i know this can/will break my environment ..😅
Running conda update anaconda -d gives the same custom thing - but it updates leaser packages .