简体   繁体   English

在Pycharm 2016.3中安装pip

[英]Installing pip in Pycharm 2016.3

I upgraded to the new version of Pycharm. 我升级到新版本的Pycharm。 In the terminal, it says bash-3.2$ instead of my username. 在终端中,它表示bash-3.2$而不是我的用户名。 When I tried to install a library, it said that pip command is not found: 当我尝试安装库时,它说没有找到pip命令:

bash: pip: command not found

So I installed pip: 所以我安装了pip:

bash-3.2$ sudo easy_install pip
Searching for pip
Best match: pip 8.1.2
pip 8.1.2 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
Installing pip3.5 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Using /Library/Python/2.7/site-packages
Processing dependencies for pip
Finished processing dependencies for pip</i>

Okay, now all I have to do is use pip to install a library, right? 好的,现在我所要做的就是使用pip来安装库,对吧?

But then, this happens: 但是,这会发生:

bash-3.2$ pip install pandas
bash: pip: command not found

I don't understand what I have to do to actually install pip. 我不明白我要做什么来实际安装pip。 Or should I use sudo easy_install [library] ? 或者我应该使用sudo easy_install [library]

I know that this is not precisely what you're asking, but PyCharm has its own built-in package manager. 我知道这不是你所要求的,但PyCharm有自己的内置包管理器。 You should not have to use pip manually. 您不必手动使用pip。

File->Settings->Project Interpreter https://www.jetbrains.com/help/pycharm/2016.3/installing-uninstalling-and-upgrading-packages.html 文件 - >设置 - >项目翻译https://www.jetbrains.com/help/pycharm/2016.3/installing-uninstalling-and-upgrading-packages.html

there you can manage the installed packages for the selected Python interpreter or virtualenv. 在那里,您可以管理所选Python解释器或virtualenv的已安装软件包。

Run this command on your terminal. 在终端上运行此命令。 pip will be installed without any issue. pip将安装没有任何问题。

sudo [your package manager] install python-pip python-dev build-essential

If it is not solved. 如果没有解决。 The problem might be PATH problem. 问题可能是PATH问题。 Type echo $PATH on terminal. 在终端上键入echo $PATH There should be /usr/local/bin in the output. 输出中应该有/usr/local/bin If it is not type PATH=$PATH:/usr/local/bin to add /usr/local/bin to PATH 如果不是类型PATH=$PATH:/usr/local/bin/usr/local/binPATH

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

相关问题 乳胶符号不适用于pycharm 2016.3 - latex notation not working on pycharm 2016.3 如何在Linux中使用pycharm 2016.3管理(ana)conda - How to manage (ana)conda with pycharm 2016.3 in linux 如何在 PyCharm 中指定用于从 requirements.txt 安装的 pip 选项 - How to specify pip options in PyCharm for installing from requirements.txt 在CMD、Pycharm工程终端使用pip和通过ZE47D2910ZF66B5062C0F接口安装包有什么区别? - Is there any difference between using pip in CMD, Pycharm project terminal or installing packages through Pycharm interface? Pycharm在安装CV2,PIL和其他库时给出pip错误? - Pycharm gives pip error while installing CV2, PIL and other libraries? pip 和 Pillow 的 Pycharm 问题 - Pycharm difficulties with pip and Pillow PyCharm中不一致的pip版本 - inconsistent pip version in PyCharm pycharm pip 冻结问题 - pycharm pip freeze issue 即使通过pip安装chatterbot软件包以及通过Python解释器在Pycharm上也无法导入Chatterbot - Unable to import Chatterbot even after installing the chatterbot package through pip as well as on Pycharm through Python interpreter 即使正确安装了 pip 和 mysql 连接器,我也无法在 Pycharm 上连接到 MySQL - I am unable to connect to MySQL on Pycharm even after installing pip and mysql connector properly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM