简体   繁体   English

在 MacOS 上的独立 Spyder 中使用 pip

[英]Using pip in the standalone Spyder on MacOS

As the Anaconda Distribution of Spyder has some typing latency issues on macOS Big Sur, I've gone ahead and downloaded the standalone distribution.由于 Spyder 的 Anaconda 发行版在 macOS Big Sur 上存在一些打字延迟问题,我已经下载了独立发行版。 However, when trying to install packages with pip I get the error message:但是,当尝试使用 pip 安装软件包时,我收到错误消息:

pip install numpy
/Applications/Spyder.app/Contents/MacOS/python: No module named pip
Note: you may need to restart the kernel to use updated packages.

(I know that NumPy is already installed - this just serves as an example). (我知道 NumPy 已经安装 - 这只是一个例子)。 I have Anaconda installed, and there pip works fine.我安装了 Anaconda,pip 工作正常。 How do I install it for the specific Standalone Distribution?我如何为特定的独立发行版安装它?

I solved this problem using the Command Prompt and typing pip install -U spyder .我使用命令提示符并键入pip install -U spyder解决了这个问题。 If you don't have the "standalone version" of Python, just install it to have access to this command.如果您没有 Python 的“单机版”,只需安装它即可使用此命令。

After that, you can simply open Spyder typing in the Command Prompt spyder .之后,您只需在命令提示符spyder中输入即可打开 Spyder。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM