xxxxxxxxxx
You nned to check out if you have paths defined only once for python and for scripts.
How to do this?
start -> type Edit the system environment ( ) -> Environment variables.. ->
In User variables for ( ) click on "Path" and then edit You need to have there only direct path to Python folder and to Scrips folder in the same Python's folder
Which folder's location is fine?
start -> python -> right click on it -> Open file location -> right click on python shortcut -> open file location
and this is the location you should have defined in the Path
Do the same in the "System variables" Path below the User variables for ( ) [it's still the same window as previously]
xxxxxxxxxx
#You need to put python -m in front of pip and it should work
python -m pip install <python package>
#example
python -m pip install kaggle
xxxxxxxxxx
Go to C:/Users..name..appdata(May be hidden)..Roaming...Delete the
Python file then re-install python if the command below dont work
python -m pip install --upgrade --force-reinstall pip
xxxxxxxxxx
Press Windows key + R to open up a Run dialog box. Then, type “appwiz.cpl” and press Enter to open Programs and Features.
Inside Programs and Features, right-click on the Python installation and click Change.
At the Modify Setup screen, click on Modify.
In the Optional Features screen, check the box associated with pip and click Next.
Hit the Install button to make the changes to the Python installation
Once the Python installation is modified, open a CMD window and see if you’re able to install a Python package
xxxxxxxxxx
launcher_command = "your_launcher_command"
import subprocess
try:
subprocess.check_output(launcher_command, stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError as e:
print("Error: ", e.output.decode())
xxxxxxxxxx
1) downloading Python 3 at the official website and installing it via express installation
2) Copy & Paste the standalone python into the ampps/python folder and overwriting the python version provided by AMPPS
3) running python -m pip install --upgrade pip in cmd