79828824

Date: 2025-11-24 15:37:18
Score: 0.5
Natty:
Report link

Usually, when there is a script in raw/code form, there also must be virtual environment.

Virtual environment is most likely in form of requirements.txt file. You either need miniconda or miniforge (conda) to install this environment. It's also possible that the environment is presented in a .zip file in the Releases (if we are talking GitHub).

When you have Python installed and you run any script.py file, then the file system calls for "default application" which in this case is python > this leads that the python is called with the file as arguments, but this process is already completed in "default app" which is Python console in your new window.

To avoid this, simply create either a run.bat file or type in the command:

FULL\PATH\TO\python.exe script.py
(recommended) this will call the python and the script in your current window.

or

python script.py if your environment is in the System/User PATH
(not recommended as you may want to use multiple environments on one device).

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: JohnyCapo