Anaconda had not updated Python internally to 3.6, but later versions of Anaconda has a Python 3.6 version here.
a) Method 1
If you wanted to update, you will type
conda update pythonTo update Anaconda, type
conda update condaIf you want to upgrade between major python versions, like 3.5 to 3.6, you'll have to do
conda install python=$pythonversion$
b) Method 2 - Create a new environment (the better method)
conda create --name py36 python=3.6
c) To get the absolute latest Python (3.6.5 at time of writing)
conda create --name py365 python=3.6.5 --channel conda-forge
You can see all this from here.
Also, refer to this for force upgrading.
Answer from Moulick on Stack OverflowAnaconda had not updated Python internally to 3.6, but later versions of Anaconda has a Python 3.6 version here.
a) Method 1
If you wanted to update, you will type
conda update pythonTo update Anaconda, type
conda update condaIf you want to upgrade between major python versions, like 3.5 to 3.6, you'll have to do
conda install python=$pythonversion$
b) Method 2 - Create a new environment (the better method)
conda create --name py36 python=3.6
c) To get the absolute latest Python (3.6.5 at time of writing)
conda create --name py365 python=3.6.5 --channel conda-forge
You can see all this from here.
Also, refer to this for force upgrading.
Creating a new environment will install Python 3.6:
conda create --name 3point6 python=3.6
Output:
Fetching package metadata .......
Solving package specifications: ..........
Package plan for installation in environment /Users/dstansby/miniconda3/envs/3point6:
The following NEW packages will be INSTALLED:
openssl: 1.0.2j-0
pip: 9.0.1-py36_1
python: 3.6.0-0
readline: 6.2-2
setuptools: 27.2.0-py36_0
sqlite: 3.13.0-0
tk: 8.5.18-0
wheel: 0.29.0-py36_0
xz: 5.2.2-1
zlib: 1.2.8-3
When downloading Anaconda how do you use the latest version of Python?
How to install the specific version of Python with Anaconda? - Stack Overflow
How to install Python 3.12.3 32bit with anaconda
Upgrading python - How do I ... ? - Conda Community Forum
Videos
I'm completely new to programming and my teacher told us to download Anaconda. When I went to the official website there's Anaconda for only Python v3.9 whereas the Python website has it's latest version as 3.10.7.
So I'm pretty sure Anaconda comes with it's own version of Python, but is there anyway to use the latest version? If I download Python 3.10.7 can I switch to that instead of the default Anaconda 3.9 and still use the IDLE's?
Edit: For future reference:
-
conda cmd-->admin to grant necessary permissions.
-
create a new environment variable to combat solving env errors:
conda create --name [ENV_NAME]
-
update conda or install python version
conda update --all conda install python==[version]
Anaconda Downloads
The Anaconda distribution with Python 3.6.5 was version 5.2.0.1 You can download this from the Anaconda distribution archive. If you do install from this, then make sure to update Conda immediately after installation:
conda update conda
However, I strongly recommend the following alternate solution as better practice.
Miniconda + Anaconda environment
Reasoning
What is installed in the base environment is relatively fixed once installed. Ultimately, you don't want to mess with your base environment, so best practice is to have the latest version there. Fortunately, you don't have to install a full Anaconda distribution, but rather can use a lightweight Miniconda (or Miniforge) distribution and create a secondary environment for the purpose of having an Anaconda Python 3.6.5 distribution. In the long run this will give you better stability.
Steps
Download and install Miniconda or a Miniforge variant. Once that is working...
Create your Anaconda env:
conda create --name my_env -c anaconda python=3.6.5 anaconda=5.2.0Use your new isolated env:
conda activate my_env
[1] I determined this by running conda create -n foo --dry-run -c anaconda python=3.6.5 anaconda and then examining the version of the anaconda package that Conda ended up with in the solve.
Also try
conda install python=3.6.5
but you may encounter some incompatibility issues with other packages.
Alternatively, you may want to try creating a new environment. From the anaconda prompt, create a custom environment and specify the repository channel to find the version
conda create --name py365 python=3.6.5 --channel conda-forge
Activate the new environment
conda activate py365
However, the activation will not be permanent, and you will need to activate each time you start the anaconda prompt.
I have a 32bit machine, doing the command conda search python only shows that the latest version that I can install is v3.10.0 I want specifically v3.12.3 32bit but It is not found,
I can download that version from the python website but how do I tell anaconda to use that version?
Inside of conda environment, you can update python to latest as follow:
conda update python
Or you can upgrade or downgrade the environment python version:
conda install python=3.10
Updating or Upgrading Python
Open conda shell prompt. (On Windows Anaconda Powershell Prompt)
You first check
conda search python
You will get all the supported versions. It may look like:
Loading channels: done
# Name Version Build Channel
python 2.7.13 h1b6d89f_16 pkgs/main
python 2.7.13 h9912b81_15 pkgs/main
python 2.7.13 hb034564_12 pkgs/main
python 2.7.14 h2765ee6_18 pkgs/main
python 2.7.14 h3e68818_15 pkgs/main
python 2.7.14 h4084c39_22 pkgs/main
python 2.7.14 h4a10d90_30 pkgs/main
python 2.7.14 h4a10d90_31 pkgs/main
python 2.7.14 h59f5a59_20 pkgs/main
python 2.7.14 h819644d_16 pkgs/main
python 2.7.14 h8c3f1cb_23 pkgs/main
python 2.7.15 h2880e7c_2 pkgs/main
python 2.7.15 h2880e7c_3 pkgs/main
python 2.7.15 h2880e7c_4 pkgs/main
python 2.7.15 hcb6e200_15 pkgs/main
python 2.7.15 hcb6e200_5 pkgs/main
python 2.7.15 hcb6e200_7 pkgs/main
python 2.7.15 he216670_0 pkgs/main
python 2.7.16 hcb6e200_0 pkgs/main
python 2.7.17 h930f6bb_0 pkgs/main
python 3.5.4 h1357f44_23 pkgs/main
python 3.5.4 hc495aa9_21 pkgs/main
python 3.5.4 hd3c4935_11 pkgs/main
python 3.5.4 hdec4e59_20 pkgs/main
python 3.5.4 hedc2606_15 pkgs/main
python 3.5.5 h0c2934d_0 pkgs/main
python 3.5.5 h0c2934d_1 pkgs/main
python 3.5.5 h0c2934d_2 pkgs/main
python 3.5.6 he025d50_0 pkgs/main
python 3.6.2 h09676a0_15 pkgs/main
python 3.6.2 h6679aeb_11 pkgs/main
python 3.6.3 h210ce5f_2 pkgs/main
python 3.6.3 h3389d20_0 pkgs/main
python 3.6.3 h3b118a2_4 pkgs/main
python 3.6.3 h9e2ca53_1 pkgs/main
python 3.6.4 h0c2934d_2 pkgs/main
python 3.6.4 h0c2934d_3 pkgs/main
python 3.6.4 h6538335_0 pkgs/main
python 3.6.4 h6538335_1 pkgs/main
python 3.6.5 h0c2934d_0 pkgs/main
python 3.6.6 hea74fb7_0 pkgs/main
python 3.6.7 h33f27b4_0 pkgs/main
python 3.6.7 h33f27b4_1 pkgs/main
python 3.6.7 h9f7ef89_2 pkgs/main
python 3.6.8 h9f7ef89_0 pkgs/main
python 3.6.8 h9f7ef89_1 pkgs/main
python 3.6.8 h9f7ef89_7 pkgs/main
python 3.6.9 h5500b2f_0 pkgs/main
python 3.7.0 hea74fb7_0 pkgs/main
python 3.7.1 h33f27b4_3 pkgs/main
python 3.7.1 h33f27b4_4 pkgs/main
python 3.7.1 h8c8aaf0_6 pkgs/main
python 3.7.1 he44a216_5 pkgs/main
python 3.7.2 h8c8aaf0_0 pkgs/main
python 3.7.2 h8c8aaf0_10 pkgs/main
python 3.7.2 h8c8aaf0_2 pkgs/main
python 3.7.3 h8c8aaf0_0 pkgs/main
python 3.7.3 h8c8aaf0_1 pkgs/main
python 3.7.4 h5263a28_0 pkgs/main
python 3.7.5 h8c8aaf0_0 pkgs/main
python 3.8.0 hff0d562_0 pkgs/main
python 3.8.0 hff0d562_1 pkgs/main
python 3.8.0 hff0d562_2 pkgs/main
Then simple select the version conda install python=3.8.0 if this is the last version.
To create python 3.11 conda environment use the following command
conda create -n py311 python=3.11
py311 - environment name
Update 3
To create python 3.10 conda environment use the following command
conda create -n py310 python=3.10
py310 - environment name
Update 2
You can now directly create python 3.9 environment using the following command
conda create -n py39 python=3.9
py39 - environment name
Update 1
Python 3.9 is now available in conda-forge.
To download the tar file - https://anaconda.org/conda-forge/python/3.9.0/download/linux-64/python-3.9.0-h852b56e_0_cpython.tar.bz2
Anaconda Page - https://anaconda.org/conda-forge/python
As pointed out in the comments, python 3.9 is not yet there on any channels. So, it cannot be install yet via conda.
Instead, you can download the python 3.9 executable and install it.
Once the installation is done, a new executable will be created for python 3.9 and pip 3.9 will be created.
Python:
python3.7
python3.7-config
python3.7m
python3.7m-config
python3.9
python3.9-config
pip
pip
pip3
pip3.7
pip3.8
pip3.9
pipreqs
In order to install ipython for python 3.9,
pip3.9 install ipython
On 6-Oct-2020, Python 3.9 was made available on conda-forge: https://anaconda.org/conda-forge/python. However, most of the other packages (including some of the essentials to create a basic environment) didn't explicitly support Python 3.9 yet.
However (as of 15-Oct-2020), the basic dependencies appear to have been fixed and the following command now works:
conda create -c conda-forge python=3.9 -n py39-demo