Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
308 views
in Technique[技术] by (71.8m points)

python - Can't use pip without saying py -m pip

It says Fatal error in launcher: Unable to create process using '"c:python38python.exe" "C:Python38Scriptspip.exe" ': The system cannot find the file specified.", when I use pip alone.

question from:https://stackoverflow.com/questions/65878031/cant-use-pip-without-saying-py-m-pip

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You seem to have an issue with an old Python installation that wasn't fully removed.

An easy way to resolve it is by overwriting the system PATH variable.

Press Winkey+Break (or Winkey+Pause depending on keyboard), go to "advanced system settings" then "environment variables".

On user variables you have "path". Edit it and add this new path:

C:Users<user>AppDataLocalProgramsPythonPython39Scripts

Move this all the way to the top and press OK.

Reopen your cmd. Should work.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...