Python Forum

Full Version: Linux, Python 2 to 3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OS: Linux Mint 18.2

Im using Ninja IDE and also PyCharm

Python 2.7 is the default, So when i code in either Pycharm, or Ninja, it defaults to 2.7

Is there a way to tell Pycharm or ninja, to default to python 3? or just have python 3 be the default.
Already downloaded python3.. its installed,

Newbie to Python, about 1 month.

Thanks guys.
you can setup the python interpreter in PyCharm per project https://www.jetbrains.com/help/pycharm/c...reter.html
That worked!
Had an issue with tkinter, 2.7 wouldnt work at all.

i defaulted to python 3.6 in linux. even rebooted, but ninja IDE still kept saying no tkinter module installed even tho i installed it for 2.7 and 3.6

But it works now in pycharm, thanks!!
so in pycharm, i save a file, but when i do some more code, and try to save it again, it says
Cannot create file '/home/drive5/Documents/Python_scripts/file6.py'. File already exists

well no doubt, i want to save the file as i progress lol. folder permissions say i have full read and write.