我尝试在远程linux机器上安装没有root的Python 2.7。我执行命令
./configure prefix=/
make install DESTDIR=/xxx/yyy/
其中/xxx/yyy/是我具有读写权限的目录。
最后我遇到了一个问题。上面说:
building dbm using gdbm INFO: Can't locate Tcl/Tk libs and/or headers
Python build finished, but the necessary bits to build these modules were not found: _tkinter bsddb185 dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name.
running build_scripts running install_lib creating /lib/python2.7 error: could not create '/lib/python2.7': Permission denied
在没有根访问权限的情况下安装它是否采取了正确的步骤?(即,我的配置和生成命令?)有人能告诉我为什么安装不正确吗?
谢谢,
千吨级
您应该有前缀=/xxx/yyy。使用prefix=/,它尝试将库安装到/lib/python2.7,而不是/xxx/yyy/lib/python2.7。
我只是在没有管理员权限的情况下安装python2.7.5。我认为命令应该是:
然后应该在.bashrc中添加路径/xxx/yyy/bin,如下所示:
不要编译,获取pre-built binary from ActiveState。
相关问题 更多 >
编程相关推荐