【问题标题】:pip is not installing my data_files. But easy_install doespip 没有安装我的 data_files。但是 easy_install 确实
【发布时间】:2012-01-18 06:44:54
【问题描述】:

这将是一个简短的问题。

来源在这里:https://github.com/exhuma/grc

标题解释了我的问题;)

我注册并上传了包到pypi。现在,如果我运行easy_install grc,它会按预期工作。但是如果我运行pip install grc,它会正确安装,但不会安装 data_files。我不明白为什么会这样。有什么想法吗?

【问题讨论】:

    标签: python pip easy-install setup.py


    【解决方案1】:

    可能文件未安装在您期望的路径中。在 Ubuntu 11.10 中,我在 /usr/local/configs 下看到它们,就像在 pip uninstall 输出中看到的那样:

    $ 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 的输出来确定。

    【讨论】:

    • 哎哟......如果是这样的话,我搞砸了。那不是他们应该去的地方。今天晚些时候我会检查并通知你。
    • 我认为this response 应该对您的问题有用。
    • 好的,谢谢。有效。我没有看到pip 将文件安装在其他地方。我现在更新了源并放弃了easy_install :)
    猜你喜欢
    • 2014-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-21
    • 2016-09-15
    • 1970-01-01
    • 1970-01-01
    • 2018-01-31
    相关资源
    最近更新 更多