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
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?
My current conda environment is running python 3.8.5.
When I look at their documentation, it shows that the newest version is 2.5.0. For some reason, when I initially installed it via conda install -c conda-forge awswrangler, it installed version 0.3.1.
When I try to run :
conda install -c conda-forge awswrangler==2.5.0
It has issues solving the environment.
There was an issue in AWS Data Wrangler with incompatible dependencies, but this has now been solve. Can you try and build your environment again and see if the issue has now been fixed?
Thanks
Nick
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 am new to Linux and trying to install Python 3.6 using Anaconda, given the instructions here.
When I run conda install python==3.6, I get the following:
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- jupyter_contrib_nbextensions -> jupyter_nbextensions_configurator[version='>=0.2.8'] -> python=3.5
- python==3.6
Use "conda info <package>" to see the dependencies for each package.
How do I fix this error? I already have Python 3.5 and I'd like to upgrade to 3.6 .
This seems similar to another question (if you are trying to update an already installed version of anaconda)
One option is to update anaconda using
conda update --all
For more on this look to: How do I update Anaconda?
Also, if you are entering
conda install python==$pythonversion$
It should be
conda install python==3.6
If you are going to Python 3.6 (just checking)
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.