在 Spyder 中安装 Pip [英] Pip install in Spyder
问题描述
我在 Anaconda3 中通过 Spyder 使用 Python 3.6.我有 Anaconda 安装和干净的"python 安装.
I'm using Python 3.6 through Spyder in Anaconda3. I have both the Anaconda installation and a "clean" python installation.
在我安装干净的"python 之前,当我在 cmd 中运行 Python -V
命令时,我得到了以下版本描述 Python 3.6.5 :: Anaconda, Inc.
现在,当我运行该命令时,它只显示 Python 3.6.5.
而 pip list
则短了很多.
Before I installed the "clean" python, when I ran the Python -V
command in cmd I got the following version description Python 3.6.5 :: Anaconda, Inc.
Now when I run the command it just says Python 3.6.5.
and the pip list
is a whole lot shorter.
当我打开 Spyder 并找到一些我没有的软件包时...我将如何安装所述软件包?如果我只是打开 cmd 并编写 pip install ...
它将安装在干净"的python目录中.我如何告诉它连接到 Spyder?
When ever I open Spyder and find some package that I don't have... how would I go about installing said package?
If I just open cmd and write pip install ...
it will install in the "clean" python directory.
How do I tell it to connect to Spyder?
推荐答案
正如你在 这篇文章 pip
和 conda
有一些区别.
As you can see in this post there is some difference between pip
and conda
.
使用 Anaconda
环境,你应该使用 conda
命令来安装你的库、包等.
Using Anaconda
environment you should use the conda
command to install you library, package, etc..
这篇关于在 Spyder 中安装 Pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!