- Run CMD
- Move to the folder
Scripts
path at the location of a specific Python version
cd C:\Users\..\AppData\Local\Programs\Python\Python311\Scripts
pip install <module>
- Press shortcut
Ctrl
+Shift
+P
- Change the path to the Python file:
cd D:\..\..\hello.py
- Default (Run the lastest Python version on your PC):
python hello.py
- Decide which version to run:
C:\Users\..\AppData\Local\Programs\Python\Python311\python.exe hello.py