安装错误(--site dirs)python 2.6和setuptools
我无法在nas上安装setuptools。 我有一个错误:安装错误(--site dirs)python 2.6和setuptools,python,linux,installation,setuptools,Python,Linux,Installation,Setuptools,我无法在nas上安装setuptools。 我有一个错误: LeGrappin> python2.6 setup.py build running build running build_py LeGrappin> python2.6 setup.py install running install error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path LeGrappin&g
LeGrappin> python2.6 setup.py build
running build
running build_py
LeGrappin> python2.6 setup.py install
running install
error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path
LeGrappin>
有什么想法吗?它警告您,安装它的地方不会是python加载模块的地方 要检查哪些目录是可用的,只需启动python,然后运行
import sys; print sys.path
这将为您提供所有可用的目录。您可能必须将安装前缀作为参数重写才能安装