我正在尝试安装 Deribit(一种加密货币交换)Python 客户端(在我的 Amazon Sagemaker Notebook 中)。
可以在以下位置的 git 存储库的 python
子目录中找到该项目:
如何使用 pip 从这个位置安装这个项目?
最佳答案
如 "VCS Support" section of the pip install
documentation 中所述,正确的命令如下:
pip install 'git+https://github.com/deribit/deribit-api-clients.git#egg=openapi-client&subdirectory=python'
注意事项:
- 使用
git+https
方案 - 将实际的 Python 项目名称指定为
egg=ProjectName
- 指定可以在 git 存储库中找到项目的子目录
subdirectory=path/to/project
关于git - 如何使用 pip 从 git 存储库的子目录安装 Python 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59881333/