[英]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/bin
到PATH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.