我一直在尝试在waf随附的机器上构建pycairo.运行./waf configure时,得到以下结果:
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 6, 'final', 0)
The python version is too old, expecting (3, 1, 0)
(complete log in /Users/USER/Downloads/pycairo-1.10.0/build_directory/config.log)
我已经在/usr/local/bin / python3中安装了python 3,但是在阅读waf的文档后我不知道如何覆盖它.我在OS X Yosemite 10.10.4上.
解决方法:
如何运行/usr/local/bin / python3 ./waf configure?这应该强制waf使用正确的python版本.
编辑:尝试以下-
导出PYTHON = /usr/local/bin / python3
./waf配置