For multi-version coexistence, you can use virtualenv to create a virtual running environment and install the python3 library in the virtual environment.
If you are in a Linux environment, you can use pyenv to switch versions. You can refer to this article to try: Python multi-version coexistence tool-Configuration of Pyenv and Anaconda scientific computing environment
http://www.nowamagic.net/academy/detail/1330228
python virtualenv
Please use pip3
If you need to coexist with multiple versions of Python, it is recommended to use pyenv https://github.com/yyuu/pyenv
Or run your command with absolute path
This code installs tornado into the python directory of version 2.6.9
Use absolute paths
For multi-version coexistence, you can use virtualenv to create a virtual running environment and install the python3 library in the virtual environment.
All python scripts are run through virtualenv. Develop the habit of one project and one environment
If you are in a Linux environment, you can use pyenv to switch versions. You can refer to this article to try:
Python multi-version coexistence tool-Configuration of Pyenv and Anaconda scientific computing environment