找不到平台无关的库<prefix> ImportError:没有名为site

时间:2016-11-23 09:05:52

标签: python-2.7

我收到了一个我无法解决的错误,希望有人可以帮助我!

我正在安装openstack组件,首先,我以源代码方式安装python。但在我处理“下载源包”,“解压缩文件”,“编译”和“make install”的步骤后,我相信我已经完成了安装程序。但是当我执行命令时          “ln -s /usr/local/python2.7/bin/python /bin/python2.7”
或命令          “python”,
它抛出了以下错误:

    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    ImportError: No module named site

我在网上搜索,但没有方法,我不知道该怎么做。

所以,有人会教我这个吗?

非常感谢!

PS:我的python安装在“/usr/local/python2.7”的导演中      我的版本是“python 2.7.12”

 I try to install the "pip" and "setuptools",,there are the same errors .

非常感谢!

0 个答案:

没有答案