pip 没有安装我的 data_files.但是 easy_install 可以 [英] pip is not installing my data_files. But easy_install does
问题描述
这将是一个简短的问题.
This is going to be a short question.
来源在这里:https://github.com/exhuma/grc
标题解释了我的问题;)
And the title explains my problem ;)
我注册并上传了包到pypi
.现在,如果我运行 easy_install grc
,它会按预期工作.但是如果我运行 pip install grc
,它会正确安装,但不会安装 data_files.我不明白为什么会这样.有什么想法吗?
I registered and uploaded the package to pypi
. Now if I run easy_install grc
, it works as expected. But if I run pip install grc
, it installs properly, but does not install the data_files. I don't see why this is happening. Any ideas?
推荐答案
可能文件没有安装在您期望的路径中.在 Ubuntu 11.10 中,我在 /usr/local/configs
下看到它们,就像在 pip uninstall
输出中看到的一样:
Maybe the files aren't installed in the path you expect. In Ubuntu 11.10, I see them under /usr/local/configs
as it can be seen in pip uninstall
output:
$ sudo pip uninstall grc
Uninstalling grc:
/usr/local/bin/grc
/usr/local/configs/apache_access.yml
/usr/local/configs/aptitude.yml
/usr/local/configs/pysetup.yml
/usr/local/lib/python2.7/dist-packages/grc
/usr/local/lib/python2.7/dist-packages/grc-1.0b3.egg-info
Proceed (y/n)?
在您的系统中,我想您还可以检查 pip uninstall
的输出以确保.
In your system, I guess you can check also the output of pip uninstall
to make sure.
这篇关于pip 没有安装我的 data_files.但是 easy_install 可以的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!