pip 安装错误 [url]

Error with pip install [url]

我正在尝试为 Trac 安装插件,但不想使用 easy_install,因为这样安装的包无法卸载。

所以我发布了:

# pip install https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.4.4

这件事发生了:

Collecting https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.4.4
  Using cached https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.4.4
  Cannot unpack file /tmp/pip-fOSusX-unpack/acct_mgr-0.4.4 (downloaded from /tmp/pip-B6tUyR-build, content-type: text/html; charset=UTF-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-B6tUyR-build

当我浏览 https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.4.4/ 时,我在服务器上看到了一些解压缩的文件,而不是存档文件。

有什么方法可以下载所有这些,将它们存档到 tar.gz 或其他东西,然后 pip 就可以安装了吗?

或者是否有一个带有 pip 的标志可以让它与非存档包一起工作?

您需要指定方案 svn+https:

# pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.4.4