You seem to be using a Conda environment, specifically an environment named “tensorflow”. If you wish to update the Python version for this Conda environment to 3.10
First, activate the Conda environment that you wish to update:
source /root/miniconda3/bin/activate tensorflow
Now, try updating Python to 3.10 within the active Conda environment:
conda install python=3.10
This command will attempt to update Python to version 3.10 within the “tensorflow” environment.
However, be aware that doing this might cause incompatibilities with some of the existing packages installed in the environment.
Conda will typically try to resolve these and might update, downgrade, or remove some packages to accommodate the new Python version.
Once updated, you can verify the Python version in the current environment
Read more here: Source link