Conda is just like a pip command that allows you to install many dependencies. Let’s say you want to update Python to a specific version using conda how you will do so? In this tutorial, you learn the steps to perform conda update Python to a Specific Version using coda.
Steps to Update Python to a Specific Version Using Conda
To update Python to a specific version using Conda, follow these steps:
Step 1: Open your command line interface (e.g., Terminal on macOS or Command Prompt on Windows).
Step 2: Check your current Python version by running the following command:
python --version
Step 3: Update Conda to the latest version by executing the following command:
conda update conda
Step 4: Search for available versions of Python by running the following command:
conda search python
This command will display a list of available Python versions.
Step 5: Choose the specific version you want to update to and install it by executing the following command:
conda install python=desired_version
Replace desired_version
with the version number you want to update to (e.g., 3.8
or 3.9
).
Step 6: Confirm the installation by typing y
and press Enter when prompted.
Step 7: After the installation is complete, verify that Python has been updated to the desired version by running the following command:
python --version
The output should display the newly installed version of Python.
Conclusion
The conda command is the same as the pip command. Most of the developers use it to install dependencies. If you want to change the version of Python then using the above steps you will be able to update Python through it.
Leave a Reply