Python Forum
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux, Python 2 to 3
#1
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.
Reply
#2
you can setup the python interpreter in PyCharm per project https://www.jetbrains.com/help/pycharm/c...reter.html
Reply
#3
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!!
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux, Python, C ++, Brain2 and errors. PiotrBujakowski 0 955 Jun-24-2024, 03:41 PM
Last Post: PiotrBujakowski
  Is possible to run the python command to call python script on linux? cuten222 6 2,287 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  Python syntax in Linux St0rmcr0w 2 66,229 Jul-29-2021, 01:40 PM
Last Post: snippsat
  where to get portable Python for Linux (Fedora)? python001 5 8,662 Nov-01-2020, 05:23 PM
Last Post: Larz60+
  Python in Linux environment on RPI kendias 22 14,130 Sep-05-2020, 03:04 AM
Last Post: K_Research
  How do I pick the right python in Linux env? MDRI 9 5,405 Jun-27-2020, 05:40 PM
Last Post: snippsat
  control a linux program with python Fifoux082 9 5,492 May-08-2020, 04:24 PM
Last Post: Fifoux082
  Python version on Linux whois1230 5 4,702 Apr-10-2020, 07:12 PM
Last Post: buran
  Unable to install python-wnck python-imaging on Void Linux linuxlight 1 3,955 Mar-08-2020, 03:53 AM
Last Post: Larz60+
  Python in Kali Linux coolcassie 2 9,361 Dec-02-2019, 12:48 PM
Last Post: coolcassie

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020