Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I update to the latest Python version using conda?

Tags:

I am new to Python. I was asked to update to the latest Python version using conda.

So far, I have installed Anaconda on my Mac. So I am mainly using the Terminal.

Thank you in advance.

like image 787
Marwan Avatar asked Aug 27 '18 08:08

Marwan


People also ask

How do I update Python to latest version?

All you have to do is visit the Python downloads page and download the latest version. Clicking on the button will replace the existing version of Python with the new version. The older version will be removed from your computer. After you restart the computer, the new patch will be installed on your machine.

Does conda update all update Python?

The conda update –all will upgrade everything. This updates all packages in the current environment to the latest version. In doing so, it drops all the version constraints from history and tries to make everything as new as possible. Anaconda2 includes Python 2.7, and Anaconda3 includes Python 3.7.

Can I use Python 3.8 with anaconda?

Anaconda supports Python 3.7, 3.8, 3.9 and 3.10. The current default is Python 3.9.


1 Answers

If you looking to use without virtual environment or in the environment than you can do the update of the python with:

conda update python 

Or you can upgrade or downgrade the environment python version:

conda install python=3.7 

Updating or Upgrading Python

like image 66
n1tk Avatar answered Oct 09 '22 02:10

n1tk