如何安装spoonacular python包

2024-09-29 03:33:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用这里找到的spoonacular python API https://github.com/ddsky/spoonacular-api-clients/tree/master/python

然而,我似乎不知道如何在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 repo吗

任何帮助都将不胜感激


Tags: piphttpsgitgithubmastercomapiid
1条回答
网友
1楼 · 发布于 2024-09-29 03:33:34

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

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

$ cd spoonacular-api-clients/python

$ python setup.py install

它应该在以下方面发挥作用: enter image description here

相关问题 更多 >