如何在python中永久编辑sys.executable?

时间:2016-08-29 11:09:31

标签: python

我正在尝试安装py2cairo但是我收到以下错误:

Checking for 'gcc' (c compiler)          : ok 
Checking for program python              : /usr/local/opt/python/bin/python 
python executable '/usr/local/opt/python/bin/python' different from sys.executable '/usr/local/opt/python/bin/python2.7'
Checking for python version              : (2, 7, 9, 'final', 0) 

which python的输出是:

/usr/local/opt/python/bin/python

sys.executable是:

'/usr/local/opt/python/bin/python2.7'

所以我想知道如何使两者相同。

我正在使用MAC,但不确定它是否有任何区别。

0 个答案:

没有答案