如何修复在 Spyder 5.0.3 中执行 pip 时出现的错误

问题描述 投票:0回答:2

尝试通过 Spyder 5.0.3 运行 pip 时出现错误

我最近在我的机器上安装了 Spyder 5.0.3,来自 https://www.spyder-ide.org/

当我尝试在 Spyder 中的 IPython 上执行“pip --version”时,我收到以下错误消息:

Note: you may need to restart the kernel to use updated packages.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

如何修复此问题以便可以在 IPython Spyder 中运行 pip?

pip ipython spyder
2个回答
2
投票

Spyder 网站上提供的 Windows 独立安装程序中没有 pip。如果您想使用或安装独立安装程序附带的软件包之外的特定软件包,您将需要采用模块化方法来使用 Spyder(创建一个环境并选择他的 python 可执行文件作为 Spyder 将使用的解释器) .

为此,您需要:

Spyder GitHub wiki 有一个页面解释了设置其中一些元素的过程:https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder#模块化方法


0
投票

Spyder GUI 在“控制台”菜单下有一个重新启动内核选项。

© www.soinside.com 2019 - 2024. All rights reserved.