从Git存储库安装Python软件包后,缺少一些文件夹 [英] After installation of Python package from Git repository some folders are missing

查看:163
本文介绍了从Git存储库安装Python软件包后,缺少一些文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从以下仓库中安装软件包 https://github.com/geomin/django-国家. 我正在使用的命令是pip install git://github.com/geomin/django-countria.git. Pip将存储库克隆到一个临时文件夹,然后运行setup.py.问题在于,安装完成后,site_packages包含文件countria-0.8-py2.7.egg/countria/models.pycountria-0.8-py2.7.egg/countria/__init__.py,但是没有fixtureslocale文件夹.如果我克隆程序包并运行setup.py,我将得到相同的行为.

I want to install a package from the following repo https://github.com/geomin/django-countria. The command I'm using is pip install git://github.com/geomin/django-countria.git. Pip clones the repo to a temporary folder and then runs setup.py. The problem is that after installation completes, site_packages containes files countria-0.8-py2.7.egg/countria/models.py and countria-0.8-py2.7.egg/countria/__init__.py but no fixtures and locale folders. If I clone the package and run setup.py I get the same behavior.

推荐答案

该软件包缺少固定装置和东西的原因是没有

The reason the package misses fixtures and stuff is that there is no MANIFEST in this repo.

尝试安装以进行开发:

pip install -e git+git://github.com/geomin/django-countria.git#egg=countria

或者,克隆软件包并运行:

Or, clone the package and run:

pip install -e path/to/clone

这篇关于从Git存储库安装Python软件包后,缺少一些文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆