【问题标题】:PIP: "Fatal error in launcher" when trying to download scipyPIP:尝试下载 scipy 时出现“启动器中的致命错误”
【发布时间】:2020-02-28 10:47:45
【问题描述】:

问题

由于某些错误无法下载 scipy 后,我尝试安装和卸载 python,降级到 python3.75 并返回到 python 3.8 - 现在没有任何效果。

即在命令行中输入pip会返回如下错误:

Fatal error in launcher: Unable to create process using '"c:\users\alon\appdata\local\programs\python\python38-32\python.exe" "C:\Users\alon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe" '

我只想让 scipy 工作,但现在一切都坏了。

我尝试了什么

我确实检查了 SO 和其他处理此错误的地方的所有线程,但没有任何效果。

我尝试删除python并重新下载,但问题仍然存在。

其他细节

我正在处理Windows 10

编辑

在尝试删除所有内容并重新安装后,我在 cmd 行中执行 pip 时遇到此问题:

File "<stdin>", line 1, in <module>
NameError: name 'pip' is not defined```


When I execute ```echo %PATH%``` this is what I get:

```C:\Program Files\Cmder\bin;C:\Program Files\Cmder\vendor\bin;C:\Program Files\Cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Program Files\Cmder\vendor\conemu-maximus5;C:\Program Files\Cmder\vendor\conemu-maximus5\ConEmu;C:\Program Files (x86)\Python38-32\Scripts\;C:\Program Files (x86)\Python38-32\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\alon\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Cmder```


While when I enter "edit environment variables" this is what appears under ```path```:

```C:\Program Files (x86)\Python38-32\Scripts\;C:\Program Files (x86)\Python38-32\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;```

Which is a completely different list. 

【问题讨论】:

  • 您可能必须手动安装 pip,但为了快速解决问题,您可以尝试卸载 python,然后删除 C:\Users\alon\AppData\Local\Programs\Python 中所有相关的剩余文件和目录(备份您保存在那里的任何脚本,如果需要),最后再次安装。它现在应该可以正常工作了。
  • 做到了,现在当我尝试pip 它说'pip' is not recognized as an internal or external command, operable program or batch file. 即使我在路径中有python/Scripts 也会发生这种情况。
  • 这很奇怪。您确定它已添加到 Path 环境变量中吗?
  • 当我执行 echo %PATH 这就是我得到的:
  • 我没有碰巧在列表中看到正确的 python 路径。尝试执行setx PATH “%PATH%;C:\Users\alon\AppData\Local\Programs\Python\Python38-32\Scripts"

标签: python scipy pip


【解决方案1】:

我也有类似的问题。我也有 Windows 10。在 pip install 和 pip3 install 最初工作之后,然后就开始工作了(打败了我)

py -m pip install whatver-it-is-your-trying-to-install

为我工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-07
    • 1970-01-01
    • 2021-05-08
    • 1970-01-01
    • 2016-08-08
    • 2020-07-06
    • 1970-01-01
    相关资源
    最近更新 更多