安装任何基于pip的包时出现异常错误

时间:2017-03-27 12:31:00

标签: python pip python-wheel

我不记得从什么时候开始,但每当我安装任何基于pip的软件包时,我的系统(Ubuntu 14.04,Python 2.7.6)都会出现警告/错误:

Url 'file:///home/username/.pip-wheelhouse' is ignored: it is neither a file nor a directory.

我不知道这条线来自哪里,但是我安装的pip包安装得非常好,但是这条线总是显示出来。我该如何删除?

1 个答案:

答案 0 :(得分:1)

有一些事情可以导致这种情况。首先看一下~/.pip/pip.conf [wheel] wheel-dir = /home/username/.pip-wheelhouse ,看看它是否包含这样的部分:

env | grep -i wheel

如果是这样,请注释该部分,使用pip,看看是否删除了该消息。

此配置文件指定与某些环境变量相同的信息。试试这个:

wheel

此命令将列出包含单词.pip-wheelhouse的所有环境变量。如果看到任何输出,请查找指定PIP_FIND_LINKS目录的行。例如,~/.bashrc pip configuration file。当你找到罪魁祸首时,你只需要追踪这些变量的设置位置。用于设置此类变量的最佳候选文件是~/.profile/etc/profilewheel。在这些文件中搜索单词bool Retrieve(const int & acctNum, Account* acctPtr) { if (Search(root, acctPtr, acctNum)) return true; else return false; } bool Search(Node* temp, Account* acctPtr, int acctNum) { if (temp == NULL) { return false; } else if (temp->pAcct->getAcct() == acctNum) { acctPtr = temp->pAcct; return true; } else if (acctNum <= temp->pAcct->getAcct()) { return Search(temp->left, acctPtr, acctNum); } else { return Search(temp->right, acctPtr, acctNum); } } ,我怀疑您将能够解决此问题。

相关问题