I used this as a reference.
https://teratail.com/questions/32152
I'm learning Python using Cloud9, but I wanted to change the Python version from 2.7 to 3.x, and even if I changed the Python version to Pytyon3 in Language Support of PROJECT SETTINGS, with Python -V If you check it, it will be displayed as 2.7.6. Please let me know if there are any other necessary steps
I don't know how to change PROJECT SETTINGS, but if you change it on terminal It was made with the following.
If the python command is which python /usr/bin/python You can see that it is in. ls -l /usr/bin/python You can see that this is a symbolic link. You can use other versions of python by changing the substance of this symbolic link. $ ls -l /usr/bin/python lrwxrwxrwx 1 root root 18 Apr 12 13:43 /usr/bin/python -> /usr/bin/python3.5* $ python -V Python 3.5.1
You can change the symbolic link in the following ways. $ sudo bash $ rm /usr/bin/python $ ln -s /usr/bin/python3.4 /usr/bin/python $ python -V Python 3.4.3
Recommended Posts