如何安装 spoonacular python 包

How to install spoonacular python package

我正在尝试使用此处 https://github.com/ddsky/spoonacular-api-clients/tree/master/python

python API 的望远镜

但是,我似乎不知道如何在 virtualenv 中安装它。我习惯于使用 pip 安装包。所以当说明说要像这样安装时:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

我需要将此目录 (https://github.com/ddsky/spoonacular-api-clients/tree/master/python) 保存到我自己的 GitHub 存储库吗?

如有任何帮助,我们将不胜感激!

你说得对有些奇怪,我尝试了更直接的方法:

  1. 首先激活你的虚拟环境
  2. 克隆回购:git clone https://github.com/ddsky/spoonacular-api-clients.git
  3. 手动安装包:

$ cd spoonacular-api-clients/python

$ python setup.py install

它应该有效: