我正在尝试安装pycairo,但是我的符号链接将它发送到python2,尽管它需要3。如何避免这个错误?
# ./waf build
./options()
The project was not configured: run "waf configure" first!
root@Archimedes:/home/archimedes/Downloads/pycairo-1.10.0# ./waf configure
./options()
Setting top to : /home/archimedes/Downloads/pycairo-1.10.0
Setting out to : /home/archimedes/Downloads/pycairo-1.10.0/build_directory
./configure()
Checking for 'gcc' (c compiler) : ok
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 3, 'final', 0)
The python version is too old, expecting (3, 1, 0)
(complete log in /home/archimedes/Downloads/pycairo-1.10.0/build_directory/config.log)在检查python时,是否有一种方法可以将其发送到/usr/bin/python3而不是/usr/bin/python (符号链接)?谢谢!
发布于 2014-06-29 11:26:33
将环境变量$PYTHON设置为要使用的二进制文件的路径,例如
export PYTHON=/usr/bin/python3
./waf configurehttps://askubuntu.com/questions/489536
复制相似问题