安装错误(--site-dirs)python 2.6 和 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>
有什么想法吗?
i can't install setuptools on my nas.
i have this error :
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>
Any idea ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它警告您安装它的位置不会是 python 加载模块的位置。
要检查哪些目录,只需启动 python,然后运行
它应该会为您提供所有可以工作的目录。您可能必须覆盖安装前缀作为安装参数。
It's warning you that the place it is getting installed to will not be a place where python loads modules from.
To check which directories are, simply start python, then run
That should give you all directories that do work. You may have to override the installation prefix as an argument to install.