I would like to update conda to get the later version of python and its extensions but it keeps telling me this :
(base) C:\Users\pierr>conda update conda
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.2
latest version: 4.5.4
Please update conda by running
$ conda update -n base conda
# All requested packages already installed.
(base) C:\Users\pierr>conda update -n base conda
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.2
latest version: 4.5.4
Please update conda by running
$ conda update -n base conda
# All requested packages already installed.
Any help here please ?
There seems to be some documentation issue here. Apparently, 'conda update -n base conda' does not work any longer.
It seems that no one has fixed the documentation.
conda update --all
seems to work for me.
Related
Conda tells me that there is an update available, but when I try to update, it doesnt work. I run conda update -n base -c defaults conda and get the following notification:
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.10.3
latest version: 22.11.1
Please update conda by running
$ conda update -n base -c defaults conda
# All requested packages already installed.
I cannot find a github repo for anaconda. What is the issue here? Running conda --version confirms 4.10.3 is installed. I installed anaconda through the Anaconda3-2022.10-Linux-x86_64.sh, so definitely not 4.10.3.
From the documentation:
#update the conda package manager to the latest version
conda update conda
#use conda to update Anaconda to the latest version
conda update anaconda
To update to a specific version of Anaconda, enter these commands:
#update the conda package manager to the latest version
conda update conda
#use conda to install a specific version of Anaconda
conda install anaconda=VERSION-NUMBER
Did you try these steps, including updating anaconda?
I am trying to set up a conda environment with python 3.10 installed. For some reason, no install commands for additional packages are working. For example, if I run conda install pandas, I get the error:
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.1
conda install -c conda-forge pandas doesn't work either. Not sure what the problem is.
Thats a bug in conda, you can read more about it here: https://github.com/conda/conda/issues/10969
Right now there is a PR to fix it but its not a released version. For now, just stick with
conda install python=3.9
Adding an answer as this issue has been fixed in the latest conda update. I faced the same issue in conda version 4.10.1 but it worked fine in version 4.11.0.
Update conda to the latest version with
conda update -n base -c defaults conda
Now install the required packages.
conda install -n py310 python=3.10 works for me.
Conda 4.10 is incompatible with python 3.10.
To use python 3.10 or newer, you need to update to conda 4.11+. If you cannot update conda, you need to revert to python 3.9 or older.
Read more on the on the link provided by vbraun. This reply is to clarify possibilities for the users.
Can also use the conda-forge channel:
conda install -c conda-forge python=3.10
We must create a new environment with latest version of python and change to this new environment inside anaconda navigator
trying to install tensorflow using conda package manager
using following command
conda install -c conda-forge tensorflow
but it gives following error while executing transaction
CondaError: Cannot link a source that does not exist.
C:\ProgramData\Anaconda3\Scripts\conda.exe
I faced the same issue and
conda update -n root conda
Solved the problem. The env name "root" is for conda <= 4.3, otherwise use:
conda update -n base conda
I hope this helps.
Try to run conda clean --all --yes and conda update anaconda.
Do you have a conda.exe file in the following folder C:\ProgramData\Anaconda3\Scripts\?
Do you use the latest Conda?
Another solution could be to create a conda environments conda create -n name_environment pip python=3.5 and using pip to install tensorflow pip install tensorflow inside the new environment
after having activated it (activate name_environment).
P.S. I can not write a comment because I do not have enough reputation.
EDIT - Now i can!
So I have an old version of conda install
conda -V
conda 4.5.4
the current version of anaconda is 5.1 and it is running python 3.6.4
I wanted to test my code base on the newer version of conda so I tought I could install a new env first with conda and it would give me the latest version of the conda distribution
conda create -n py364 python=3.6 anaconda
I thought this would be installing the latest anaconda with python 3.6.4 but it is actually installing python 3.6.1
is it possible to install the new anaconda version in a env?
It can depends on your environement.
Test: conda search python to see the available versions for your environement.
Have you tried: conda create -n py364 python=3.6.4 anaconda ?
as #darthbith suggested in the comments
you should always update your conda version using
conda update conda
then if you call
conda create -n py364 python=3.6 anaconda
it will install the latest distribution of anaconda on the with python 3.6.
or you could also call
conda create -n conda51 anaconda=5.1
to install the actual distribution you are targeting
I need to downgrade my conda version from 4.3 to 4.2 on my CentOS 6.7 machine.
What is the command required to do that?
I wouldn't recommend downgrading conda except when the newly installed (upgraded) version has a critical bug.
But since you asked: You can specify a version by appending ={version} to the packages, this works even for the conda package:
$ conda install conda=4.2
If you want a specific 4.2 version you can also use (for example):
$ conda install conda=4.2.15
Note that downgrading conda can be very risky. After the downgrade your conda could fail completely or work incorrectly. Conda uses a lot of metadata that evolve over time ... so if the downgraded conda version cannot make sense of these - or even worse corrupt them - you'll have a painful experience in how to recover your conda environemnt. Downgrade conda at your own risk (and in my opinion only if really, really necessary)!
In case you already downgraded conda and it's throwing exceptions (for example CondaUpgradeError) at you, then maybe this "section" in an troubleshooting guide in the conda repository may be useful:
Conda upgrade error
Cause
Downgrading conda from 4.6.1 to 4.5.x and then trying to conda install conda or conda upgrade conda will produce a solving and upgrade error similar to the following:
Solving environment: failed
CondaUpgradeError: This environment has previously been operated on by a
conda version that's newer than the conda currently being used. A newer
version of conda is required.
target environment location: /opt/conda
current conda version: 4.5.9
minimum conda version: 4.6
Solution
Change the .condarc file. Set the parameter by editing the .condarc file directly: allow_conda_downgrades: true in conda version 4.5.12. This will then let you upgrade. If you have something older than 4.5.12, install conda 4.6.1 again from the package cache.
EXAMPLE: If my conda info says package cache : /opt/conda/pkgs and my Python version is 3.7, then on the command line, type conda install /opt/conda/pkgs/conda-4.6.1-py37_0.tar.bz2 to resolve the issue.