如何下载或安装Gitlib作为一个独立的库与最新版本的pip? [英] How to download or install Gitlib as a standalone library with recent versions of pip?
问题描述
这是一个非常简单的问题,但我完全坚持如何解决它。我甚至找不到一个方法只是下载。
该网站不提供任何东西下载它在pypi以外,没有自负。
This is a very simple problem, but I’m completely stuck on how to solve it. I couldn’t even found a way for just downloading.
The website don’t give anything for downloading it outside pypi and without smug.
$ pip install --allow-external gitlib gitlib
Collecting gitlib
Could not find a version that satisfies the requirement gitlib (from versions: )
Some insecure and unverifiable files were ignored (use --allow-unverified gitlib to allow).
No matching distribution found for gitlib
使用所需的选项不能解决问题。
Using the required options doesn’t solve the problem.
$ pip install --allow-all-external --allow-unverified gitlib gitlib==0.5
Collecting gitlib==0.5
Could not find a version that satisfies the requirement gitlib==0.5 (from versions: )
No matching distribution found for gitlib==0.5
推荐答案
Pypi只是已注册项目的列表 - 如果软件包在下载URL列出,
Pypi is only a list of registered projects -- if the package is listed at a download URL, you will need to follow that path to get the actual code to install.
在您的情况下,您可以 git clone
code> pip install 从git://mcnabbs.org/smug.git。如果克隆或下载有问题,那么这里的任何人都不能帮助您 - 包维护者已决定自己托管他的代码。
In your case, you could git clone
or pip install
from git://mcnabbs.org/smug.git. If there's issues cloning or downloading, that's not something anyone here would be able to help you out with -- the package maintainer has decided to self-host his code.
更多一般来说,pip与pypi交互。 Pypi是不在标准库中的代码的包索引。大部分代码是第三方/非官方的。重要的是要注意,没有任何质量,功能的承诺,或者直接从pip安装此代码的能力。
More generally, pip interacts with pypi. Pypi is a package index for code that is not in the standard library. Much of this code is third-party/non-official. It's important to note that there is no promise of quality, functionality, or ability to install this code directly from pip.
对于Gitlab按照pypi ,没有任何承诺,代码实际上是真正的营销是一个Pythonic低级Git库,不能保证下载网址是直接的(或正确的,甚至工作),这是一个完美的知道该信息由在pypi上注册该包的人维护的值的示例。
In the case of "Gitlab" as per pypi, there's no promise that the code is actually true to its marketing of being a "Pythonic low-level Git library", there's no guarantee that the download URL is direct (or correct or even working), and it's a perfect example of the value of knowing that this information is maintained by the person that registered that package on pypi.
这篇关于如何下载或安装Gitlib作为一个独立的库与最新版本的pip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!