简体   繁体   English

如何从 Github 安装这个 PIP 包?

[英]How do I install this PIP package from Github?

I am basically trying to access crunchbase data through their REST API using python.我基本上是在尝试使用 python 通过他们的 REST API 访问 crunchbase 数据。 There is a package available on github that gives me the following documentation. github 上有一个包,它为我提供了以下文档。 How do I get this "package" ?我如何获得这个“包裹”?

The CrunchBase API provides a RESTful interface to the data found on CrunchBase. CrunchBase API 为在 CrunchBase 上找到的数据提供了一个 RESTful 接口。 The response is in JSON format.响应采用 JSON 格式。

Register登记

Follow the steps below to start using the CrunchBase API:按照以下步骤开始使用 CrunchBase API:

Sign Up Login & get API key Browse the documentation.注册 登录并获取 API 密钥 浏览文档。

Setup设置

pip install git+git://github.com/anglinb/python-crunchbase**

Up & Running启动和运行

Import Crunchbase then intialize the Crunchbase object with your api key.导入 Crunchbase,然后使用您的 api 密钥初始化 Crunchbase 对象。

git+git://github.com/anglinb/python-crunchbase git+git://github.com/anglinb/python-crunchbase

pip install git+https://github.com/anglinb/python-crunchbase.git

You are missing the https您缺少https

Update: make sure you have git installed on your system.更新:确保您的系统上安装了git

Add this in your requirements.txt file.将此添加到您的 requirements.txt 文件中。

git+https://github.com/user_name/project_name.git

========= ==========

Ideally requirements.txt or reqs.txt will exist in your project's root folder.理想情况下, requirements.txtreqs.txt将存在于项目的根文件夹中。 This file is where all the python libraries' names will be stored along with precise version number.这个文件是所有 python 库的名称将与精确的版本号一起存储的地方。

Here is great deal of information with easy examples related to this topic这里有大量信息以及与此主题相关的简单示例

https://pip.readthedocs.io/en/1.1/requirements.html https://pip.readthedocs.io/en/1.1/requirements.html

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

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