指定的可执行文件对此操作系统中的应用程序无效

2024-09-10 07:27:30 发布

您现在位置:Python中文网/ 问答频道 /正文

所以我试着安装pip,但我就是无法让它工作。有人能告诉我怎么了吗

Fatal error in launcher: Unable to create process using '"c:\users\user\appdata\local\programs\python\python38-32\python.exe"  "C:\Users\User\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe" install requests'
PS C:\Users\User> python -c "import pip.__main__"
Program 'python.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1
char:1
+ python -c "import pip.__main__"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ python -c "import pip.__main__"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed ```

Tags: piptoinimportmainlineerrorexe