简体   繁体   中英

Python3 command not calling Python3.8

I have an EC2 Instance. I want Python3.8 on the server so I installed it but it gets installed in /usr/local/bin . So I tried to add it to the path following this question then also I am not being able to get Python3.8 when python3 is called instead it goes for Python3.7 which is default in the machine. How to solve this?

I'd go with update-alternatives --set python /usr/bin/python3.8

This should be enough if your system uses python 3 as a default version (to check that type python --version )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM