I am using Ubuntu 16.04 LTS. I installed python 3.6 using sudo apt-get python 3.6
. But python 3.5 is still installed. How do I remove 3.5 and set 3.6 as default in place of it so that when I type python3 --version
in terminal it shows 3.6.5 instead of 3.5.2
The Ubuntu 16.04 distribution comes with Python 3.5.1 . Many system apps depend on this default python
package. Removing it will break those system apps. Overwriting it with a different python will screw up updates. So don't remove it!
Instead make a virtual environment to run python3.6 as your user's default python and allowing it to co-exist with the system's python3.5.1.
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.