Python Forum
How could i change the python interpreter path of os.system()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How could i change the python interpreter path of os.system()
#1
print(sys.executable) ==> /opt/tools/anaconda3/bin/python3
but
os.system("which python") ==> /usr/bin/python

How could i change the python interpreter path of os.system() to "/opt/tools/anaconda3/bin/python3" ?
Reply


Messages In This Thread
How could i change the python interpreter path of os.system() - by 12019202386 - Sep-02-2020, 03:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mac default python interpreter Viewpoint8455 2 984 Oct-13-2022, 06:25 AM
Last Post: perfringo
  change backslash into slash in a path paul18fr 7 2,584 Jul-21-2022, 04:26 PM
Last Post: deanhystad
  Python Interpreter ankitdixit 4 2,803 Jun-10-2022, 12:37 PM
Last Post: katy1234
Photo Visual studio code unable to color syntax on python interpreter tomtom 4 7,107 Mar-02-2022, 01:23 AM
Last Post: tomtom
  How to set Tab size to 4 in Python interpreter? zzzhhh 1 1,899 Jan-18-2022, 12:11 PM
Last Post: snippsat
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,588 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  Need Help With Python RPG Battle System SBanya 1 6,557 Nov-01-2021, 10:38 PM
Last Post: Garudyne
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,260 Sep-09-2021, 01:25 PM
Last Post: Yoriz
Exclamation "System cannot find path specified"(Geany) kiwi99 2 3,948 Mar-18-2021, 07:37 PM
Last Post: kiwi99
  Change icons of system rizzla 1 1,959 Jan-28-2021, 03:30 PM
Last Post: Marbelous

Forum Jump:

User Panel Messages

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