SoFunction
Updated on 2024-12-18

Solution for pip not installed correctly or wrong path in python

python pip cannot be installed correctly or has the wrong path

After messing with it all night and looking for various methods on the internet it finally worked.

In the beginning, typing pip command in windows+r+cmd always resulted in a message that the relevant path or file could not be found.

initial step

Configuring Environment Variables

Click Environment Variables and then clickpathThen click Edit

You need to add the path to your python installation, and the pip path in your python installation, usually in the Scripts in the python folder.

second step

Shift + Right click in a blank space => Select Open Powershell window here

Input:

python  install SomePackage

third step

Again windows+r+cmd, enter the prompt command in the Powershell window

fourth step

After installing, enter pip to complete the installation.

summarize

The above is a personal experience, I hope it can give you a reference, and I hope you can support me more.