Python Forum
help needed with python launcher
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help needed with python launcher
#1
hello,
i need help with python launcher on the latest version when i try to run any script it just open the python terminal and close it immediately in just a second and doesn't run the script i tried to use any older python versions and it's the same problem and those scripts i'm wiling to run i ran it before on other computers with the same os i'm using right now and worked well but i don't know what i have to do to solve this issue
my os is windows 10 pro 64bit and python 3.7.2 64bit
Reply
#2
(Jan-19-2019, 12:36 AM)fallenlight Wrote: i need help with python launcher on the latest version when i try to run any script it just open the python terminal and close it immediately
I guess you mean cmd window?
Save an run this.
print('hello world')
input('press <Enter> to exit')
I pretty much never run a Python script bye double-clicking on it.
Always for first open cmd or cmder as i use,then type python my_script.py.
Or editor VS Code from start,
sometime for fast testing PyScripter as this editor allow no saving i can just copy in code from eg this forum and push run button.
Reply
#3
(Jan-19-2019, 02:01 AM)snippsat Wrote:
(Jan-19-2019, 12:36 AM)fallenlight Wrote: i need help with python launcher on the latest version when i try to run any script it just open the python terminal and close it immediately
I guess you mean cmd window?
Save an run this.
print('hello world')
input('press <Enter> to exit')
I pretty much never run a Python script bye double-clicking on it.
Always for first open cmd or cmder as i use,then type python my_script.py.
Or editor VS Code from start,
sometime for fast testing PyScripter as this editor allow no saving i can just copy in code from eg this forum and push run button.
i added print('hello world')
input('press <Enter> to exit')
to the scripts and the issue still exists
Reply
#4
(Jan-19-2019, 11:23 AM)fallenlight Wrote: to the scripts and the issue still exists
How are running the script.
Bye double-clicking on it,or do you use an other method?

It's normal that File Associations is set to your main version in Windows Path.
From cmd:
C:\Windows>cd ..

C:\>python -V
Python 3.7.1

C:\>pip -V
pip 18.1 from c:\python37\lib\site-packages\pip (python 3.7)

C:\>python -c "import sys; print(sys.executable)"
C:\python37\python.exe
So File Associations for .py files for me set to point to Python 3.7.
This can be changed to what you want as show in link over.
For basic setup of Python in Windows:
Python 3.6/3.7 and pip installation under Windows
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 327 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  Python Launcher Pops Up When Py-based App Is Running (Mac) radix_optimus 0 543 Sep-18-2023, 09:22 AM
Last Post: radix_optimus
  Python Launcher INI File leodavinci1990 1 823 Jul-30-2023, 03:38 PM
Last Post: snippsat
  Python issue - Data science - Help is needed yovel 2 2,015 Jul-29-2021, 04:27 PM
Last Post: yovel
  Help needed for a python package keysson 1 2,219 Sep-02-2020, 03:37 AM
Last Post: Larz60+
  Absolutely new to python - basic advise needed mariolucas75 2 2,066 Jun-12-2020, 08:36 PM
Last Post: Yoriz
Smile Help needed. Python Newbie!, it will be fun. knightdea 3 2,632 Oct-13-2019, 08:50 AM
Last Post: perfringo
  Fatal error in launcher: Unable to create process using '"' rsmldmv 0 5,505 May-13-2019, 01:34 AM
Last Post: rsmldmv
  Can the launcher show 2.7 notebook or terminal option? miner_tom 1 2,276 Aug-24-2018, 07:53 AM
Last Post: perfringo
  MAC OS + Launcher : /usr/bin/pythonw Exh 0 2,829 Feb-12-2018, 11:10 PM
Last Post: Exh

Forum Jump:

User Panel Messages

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