python报错解决:Fatal error in launcher: Unable to create process using

安装库的时候用pip突然报错

Fatal error in launcher: Unable to create process using '"d:\xxxxxxxxx\python.exe"  "D:xxxxxx\pip.exe" install pygame': ???????????

很奇怪为什么pip安装不了,想一想,好像是我昨晚把其中一个python版本的包的文件夹给删掉了,就报错找不到pip.exe ,但是这里我有了3.11版本的了,完全不影响使用,简单记录一下解决方法

查找pip.exe所在的位置

// windows
where pip.exe
// linux
which pip.exe

我这里有两个,上面的那个是删掉的包,所以报错了,只要删掉这条记录就行

//windows 
del D:\xxxx\pip.exe
// linux
sudo rm /xxx/pip

问题解决。

猜你喜欢

转载自blog.csdn.net/qq_64690665/article/details/134135518
今日推荐