在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?
推荐答案
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屋!