Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Launcher INI File
#1
I cannot find the Python Launcher Configuration File (.INI) under C:\Windows or Under C:\Users\XXX\AppData\Local\ .
The launcher itself is found in C:\Windows and works on command-line.
Reply
#2
(Jul-30-2023, 02:41 PM)leodavinci1990 Wrote: I cannot find the Python Launcher Configuration File (.INI)
That's because Configuration File is not needed bye py.exe(Python Launcher),so you have to create it but should needed at all.
As it is cli tool it has help look at py --help
So can can launch every version installed(py --list) or pip install to specific version.
G:\div_code
λ py -3.9 -V
Python 3.9.5

# The dead one
G:\div_code
λ py -2.7 -V
Python 2.7.9

# Just py always newest version
G:\div_code
λ py -V
Python 3.11.3
Let say i want to install to an older version eg 3.9.
G:\div_code
λ py -3.9 -m pip install requests
.....
Requirement already satisfied: certifi>=2017.4.17 in c:\python39\lib\site-packages (from requests) (2020.12.5)
Make a virtual environment using old 3.6.
G:\div_code
λ py -3.6 -m venv 36_env

G:\div_code
λ cd 36_env\

G:\div_code\36_env
λ G:\div_code\36_env\Scripts\activate

# See now that it will use 3.6
(36_env) G:\div_code\36_env
λ python -V
Python 3.6.4

(36_env) G:\div_code\36_env
λ pip -V
pip 9.0.1 from g:\div_code\36_env\lib\site-packages (python 3.6)

(36_env) G:\div_code\36_env
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 333 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  Python Launcher Pops Up When Py-based App Is Running (Mac) radix_optimus 0 551 Sep-18-2023, 09:22 AM
Last Post: radix_optimus
  Fatal error in launcher: Unable to create process using '"' rsmldmv 0 5,510 May-13-2019, 01:34 AM
Last Post: rsmldmv
  help needed with python launcher fallenlight 3 3,385 Jan-19-2019, 01:06 PM
Last Post: snippsat
  Can the launcher show 2.7 notebook or terminal option? miner_tom 1 2,284 Aug-24-2018, 07:53 AM
Last Post: perfringo
  MAC OS + Launcher : /usr/bin/pythonw Exh 0 2,831 Feb-12-2018, 11:10 PM
Last Post: Exh
  "Python launcher" required to run *.py scripts on Windows? pstein 3 11,331 Jun-27-2017, 02:33 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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