我在一个 bluehost-server 上,它具有 python2.6 的“基本”安装。我在我的用户目录中安装了 python2.6,到目前为止它工作正常,但是当我尝试使用“setup.py install”、“easy_install”或“pip install”安装 python 包时,我得到:
error: invalid Python installation: unable to open /usr/lib/python2.6/config/Makefile (No such file or directory)
所以,它尝试使用没有此 Makefile 的系统范围安装。同样使用 --prefix 或 --user 参数也无济于事。
如何告诉 pip 或 easy_install 在我的用户目录中使用 python 安装?