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
  Is possible to run the python command to call python script on linux? cuten222 6 634 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  How to use a variable in linux command in python code? ilknurg 2 1,547 Mar-14-2022, 07:21 AM
Last Post: ndc85430
  Python syntax in Linux St0rmcr0w 2 44,895 Jul-29-2021, 01:40 PM
Last Post: snippsat
  Login to NordVPN on Linux with python script AGreenPig 2 5,912 Feb-09-2021, 10:44 AM
Last Post: AGreenPig
  how to run linux command with multi pipes by python !! evilcode1 2 6,219 Jan-25-2021, 11:19 AM
Last Post: DeaD_EyE
  where to get portable Python for Linux (Fedora)? python001 5 6,160 Nov-01-2020, 05:23 PM
Last Post: Larz60+
  Python in Linux environment on RPI kendias 22 10,913 Sep-05-2020, 03:04 AM
Last Post: K_Research
  How do I pick the right python in Linux env? MDRI 9 3,587 Jun-27-2020, 05:40 PM
Last Post: snippsat
  control a linux program with python Fifoux082 9 4,006 May-08-2020, 04:24 PM
Last Post: Fifoux082
  Python version on Linux whois1230 5 3,423 Apr-10-2020, 07:12 PM
Last Post: buran

Forum Jump:

User Panel Messages

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