我正在尝试安装pycairo
,但是我的符号链接将其发送到 python 2,尽管它需要 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
答案1
将环境变量设置$PYTHON
为要使用的二进制文件的路径,例如
export PYTHON=/usr/bin/python3
./waf configure