在Spyder中安装Pip [英] Pip install in Spyder

查看:2352
本文介绍了在Spyder中安装Pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆