简体   繁体   English

如何从 PyCharm 中的 github 到 PyCharm 控制台中的 pip 安装 package

[英]How do I install the package from github in PyCharm through pip in PyCharm console

I am trying to run the following in the Project Console in PyCharm:我正在尝试在 PyCharm 的项目控制台中运行以下命令:

!pip install -q git+https://github.com/tensorflow/docs

But the result that I get is:但我得到的结果是:

SyntaxError: invalid syntax 

How do I run the :pip install -q git+https.//github.com/tensorflow/docs in order for it to be installed?如何运行:pip install -q git+https.//github.com/tensorflow/docs以便安装它?

You need to run from pycharm terminal :您需要从pycharm 终端运行:

pip install git+https://github.com/tensorflow/docs

or要么

pip install -q git+https://github.com/tensorflow/docs

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM