简体   繁体   English

从github进行pip安装不会安装所有内容

[英]pip install from github doesn't install everything

I want to install a python package from github. 我想从github安装一个python包。 It seems that pip install https://github.com/codelucas/newspaper/archive/python-2-head.zip is the way to go. 似乎pip install https://github.com/codelucas/newspaper/archive/python-2-head.zippip install https://github.com/codelucas/newspaper/archive/python-2-head.zip的方法。 However, this only installs the python files you can find here without the other folders. 但是,这只会安装您在此处可以找到的python文件而没有其他文件夹。 The package breaks because of this. 因此,包装破裂。 If I run pip install newspaper (which refers to the same code) the other repos are correctly installed. 如果我运行pip install newspaper (指的是相同的代码),则其他回购协议已正确安装。

I could not get if the problem is coming from pip or the package I'm trying to save (I'm kind of new to python packaging :) 如果问题是来自pip或我要保存的软件包,我无法获取(我对python打包是新的:)

The reason I don't want to use pip install newspaper is that I'm working on a fork of that code that I want to pull from github to my server directly. 我不想使用pip install newspaper是,我正在处理我想直接从github拉到我的服务器的那部分代码。 I have the same problem with my fork. 我的叉子有同样的问题。

You can install the latest snapshot from the github repository with the following command 您可以使用以下命令从github存储库安装最新快照

pip install git+https://github.com/codelucas/newspaper.git

You can find further information in the corresponding section in pip 's documentation. 您可以在pip文档的相应部分中找到更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM