Python Forum
Setup Portable Python on Windows for script starts with double clicks?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setup Portable Python on Windows for script starts with double clicks?
#1
I want to install (only) Portable Python (on Windows) or even use it from USB flash drive.

For this I just want to unpack this Portable Python package:

https://sourceforge.net/projects/portabl...on%203.10/

However I want to have still a minimum on comfort and be able to call and use "py" or "pip directly in Windows Terminal/CommandPrompt
without putting a full path in front of it.

Is it enough to simply add the path to the Portable Python binary directory <base>\App\Python\ to the Windows PATH environment variable?

Furthermore I would like to be able to start Python scripts simply by double click a *.py script file
Will it be sufficient to setup a file association from file extension *.py to <base>\App\Python\python.exe?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 365 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,186 Jun-29-2023, 11:57 AM
Last Post: gologica
  Python script running under windows over nssm.exe JaroslavZ 0 704 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Move column to the right if it starts with a letter mfernandes 0 674 Oct-25-2022, 11:22 AM
Last Post: mfernandes
  How to compile a Python script for a Windows / Linux executable? netanelst 2 1,316 May-24-2022, 07:02 AM
Last Post: netanelst
  Is it possible to make a program recognize how many clicks it has had on the monitor? jao 0 1,152 Feb-25-2022, 06:31 PM
Last Post: jao
  python regex: get rid of double dot wardancer84 4 2,356 Sep-09-2021, 03:03 PM
Last Post: wardancer84
  Regex: a string does not starts and ends with the same character Melcu54 5 2,416 Jul-04-2021, 07:51 PM
Last Post: Melcu54
  Python script on windows 10 shuts down TamP 2 2,513 Mar-08-2021, 07:19 AM
Last Post: TammyP
  Is there a way to read the time between clicks? penahuse 1 2,491 Jan-30-2021, 10:46 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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