Create virtual environments with other Python versions using Miniconda.
The platform’s built-in images all use Python 3.8. If you need to use other versions like Python 3.6 or 3.7 (for example, TensorFlow 1.14 requires Python 3.6 or 3.7), you can create virtual environments with these versions using Miniconda.
bash
Copy
# Create a virtual environment named "my-env" with Python version 3.7conda create -n my-env python=3.7# Update the environment variables in .bashrcconda init bash && source /root/.bashrc# Activate the created virtual environment: my-envconda activate my-env# Verifypython