如何从一个Bitbucket存储库中的多个头部之一安装Python模块和Pip?

2024-09-28 23:11:59 发布

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

我正在尝试更新mod\wsgi,但cryptical和crypt.h之间出现了一个问题,这在安装mod\wsgi的过程中引发了一个错误。谢天谢地,cryptical的所有者解决了这个问题。具有解决方法的版本不是其dowload页面上的版本,或者我可以安装:

pip install cryptacular

所以,我想指定pip在哪里得到密码。SSh的地址是

^{pr2}$

提交名称是cb96fb3。我试过了

pip install hg+ssh://hg@bitbucket.org/dholth/cryptacular.git@cb96fb3

我收到一条错误信息:

Error [Errno 2] No such file or directory: 'hg': 'hg' while executing command hg clone --noupdate -q ssh://hg@bitbucket.org/dholth/cryptacular.git /tmp/pip-req-build-xf6ubrkd
Cannot find command 'hg' - do you have 'hg' installed and in your PATH?

诚然,我没有安装hg。怎么办?我应该读哪几页??在


Tags: installpiporggit版本modwsgibitbucket
2条回答

Mercurial目前不支持Python3.6,所以我无法安装它。我通过下载找到了一个解决方法焦油gz用Pip安装。在

项目在Bitbucket上的特定提交文件位于:

https://bitbucket.org/<username>/<project name>/get/<commit name>.tar.gz

所以,如果你想通过终端得到它,你需要:

^{pr2}$

然后,你打开焦油gz并通过以下方式安装程序包:

pip install pathtothefile/<commit name>.tar.gz 

您需要根据特定操作系统的说明安装hg:https://www.mercurial-scm.org/

那里的SSH URL也不应该包括.git,因为该存储库不在Git中。在

相关问题 更多 >