我尝试使用brew安装postgresql,结果是
checking for libperl... yes
checking Python.h usability... no
checking Python.h presence... no
checking for Python.h... no
configure: error: header file <Python.h> is required for Python
在这个错误之后,我安装了Python,它说:
^{pr2}$我需要做什么? 谢谢
您必须告诉Homebrew链接Python:
在此之前,它只是安装在
/usr/local/Cellar
下的某个地方,但没有链接到/usr/local/bin
(例如/usr/local/bin/python
)和朋友。在出现这种情况的原因是Python似乎只是作为一个依赖项安装的,但是请求的包(PostgreSQL)的安装失败了,因此它的依赖项被保留了,但没有链接(即激活)。在
相关问题 更多 >
编程相关推荐