How To Update Anaconda on Mac
I have Anaconda installed on my computer and I want to update it. In Navigator I can see that there are some individual packages that can be updated, but also anaconda package that sometimes has version number and sometimes says custom. How do I proceed? Let Blebees show you!
95% of people really want something
In most cases, what you want to do when you say you want to update Anaconda is execute the command:
conda update --all
(But this must be pre-set by conda update -n root conda so you have the latest version of conda installed)
This will update all packages in the current environment to the latest version - with the fine print it is possible to use an older version of some packages to fulfill the dependency constraints (usually the This is not necessary and when needed the package deal plan will do its best to minimize the impact).
This needs to be executed from the command line and the best way to get there is from Anaconda Navigator, then the "Environment" tab, then click the triangle next to the root environment, select "Open Terminal":

This will only update a selected environment (in this case, the root environment). If you have other environments that you would like to update, you can repeat the above procedure, but click on the environment first. When it is selected, there is a triangular marker on the right side (see picture above, step 3). Or from the command line you can provide the environment name (-n envname) or path (-p / path / to / env), for example to update your dspyr environment from the screenshot above:
conda update -n dspyr --all
Update individual packages
If you are only interested in updating an individual package then simply click on the blue arrow or the blue version number in the Navigator, for example for astroid or astropy in the screenshot above and this will tag those packages for upgrades. When you're done, you need to click on the "Apply" button:
Or from the command line:
conda update astroid astropy
Only updated packages in the Standard Anaconda Distribution
If you are not interested in package versions and just want to "set all the latest packages in the Standard Anaconda Distribution, as long as they work together" then you should take a look at this Gist.
Why updating the Anaconda package is almost always a bad idea: In most cases Anaconda package update in the package list will have a surprising result: you can actually downgrade multiple packages (in fact, this is likely if it indicates the version is custom) . The gist above provides details.
Take advantage of conda environment: Your root environment is probably not a good place to try and manage a correct set of packages: it will be a dynamic workspace with newly installed packages and randomly updated packages.
If you need a set of correct packages then create a conda environment to keep them. Thanks to the conda packet caching and the way the file association is used, this is usually i) fast and ii) consumes very little additional disk space. For example.
conda create -n myspecialenv -c bioconda -c conda-forge python=3.5 pandas beautifulsoup seaborn nltk
The conda documentation has many details and examples.
pip, PyPI, and setuptools?: None of these will help update packages that were installed from PyPI via pip or any of those installed using python setup.py install. The conda list will give you some pointers on the pip-based Python packages you have in an environment, but there won't be anything special about updating them.
Commercial use of Anaconda or Anaconda Enterprise: It's pretty much the same story, except that you can't update the root environment if it's installed by someone else (tell / opt / anaconda / latest). If you cannot update the environment you are using, you can copy and then update:
conda create -n myenv --clone root
conda update -n myenv --allIf you are trying to update your Anaconda version to the new one, you will notice that running the new installer will not work, as it complains that the installation directory is not empty.
So you should use conda to upgrade details according to official documentation:
conda update conda
conda update anaconda
In Windows, if you have done a "for all users" installation, you may need to run from Anaconda Prompt with Administrator privileges.

This prevents errors:
Open "command or conda Prompt" and run:
conda update conda
conda update anaconda
It is a good idea to run both commands (one by one) to make sure all the underlying files are up to date.
This will bring you back to the latest 'releases', which include everyone-selected packages at Continuum for good coordination.
If you want the final version of each package to run (this can result in an unstable environment):
conda update --all
Soure : anaconda.com
source https://blebees.com/update-anaconda-mac/
Nhận xét
Đăng nhận xét