简体   繁体   中英

Python3.6 installed but version showing as 3.5.2

I am on an Ubuntu virtual machine and I am trying to update my version of python on the command line. I followed the instructions here and eventually ran $ sudo apt-get install python3.6 but when I run python3 --version it tells me my python version is 3.5.2

I am following a tutorial on heroku about building a web app using python for the server side and it says I need python3.6 installed. But when I got to the step where it was really needed, I found out it wasn't actually installed.

Any ideas?

Installing the python3.6 package doesn't touch your existing system Python installation. Python 3.5 is still installed as you saw by the output of $python3 --version . To invoke Python 3.6, you can use: $python3.6

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