Pip在Windows 10上的路径问题

huangapple go评论114阅读模式
英文:

Pip path issue with Windows 10

问题

我在Windows 10上使用pip时遇到了路径问题。我已安装了最新版本的Python 3.11并卸载了旧版本3.9。我成功将Python 3.11链接到环境变量,但pip仍然试图找到Python 3.9的路径。

致命错误在启动器中:无法使用'"C:\Users{Username}\AppData\Local\Programs\Python\Python39\python.exe" "C:\Users{Username}\AppData\Local\Programs\Python\Python39\Scripts\pip.exe" install pandas''创建进程:找不到指定的文件。

我已经在pip.ini中设置了正确的路径:

target = C:\Users\{Username}\AppData\Local\Programs\Python\Python311\Scripts\pip.exe

但pip仍然指向Python 3.9。我还尝试使用Python来使用pip:

python -m pip install pandas

但我收到了一个错误:

ERROR: Target path exists but is not a directory, will not continue.

从我理解的情况来看,这个错误似乎指出了我已经尝试修复的目标问题。

可以有人帮助我解决这个问题吗?

英文:

I have a path issue with pip on Windows 10. I have install the last version of python 3.11 and uninstall the old one 3.9. I managed to link python 3.11 to the variable environnement, however pip is still trying to find the path to python 3.9.

Fatal error in launcher: Unable to create process using '"C:\Users\{Username}\AppData\Local\Programs\Python\Python39\python.exe"  "C:\Users\{Username}\AppData\Local\Programs\Python\Python39\Scripts\pip.exe" install pandas': Le fichier spΘcifiΘ est introuvable.

I have set the pip.ini with the correct path :

target = C:\Users\{Username}\AppData\Local\Programs\Python\Python311\Scripts\pip.exe

But pip keeps pointing to python 3.9.
I have also tried to use pip using python :

python -m pip install pandas

But I get an error:

ERROR: Target path exists but is not a directory, will not continue.

From what I understand this error seems to point out the target issue that I have already tried to fix.

Can anyone please help me with this issue ?

答案1

得分: 1

从环境变量中删除python 3.9的路径。

英文:

Remove the path of python 3.9 from environment variable.

huangapple
  • 本文由 发表于 2023年8月10日 18:14:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76874768.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定