macos – 使用python 2.7在mac上安装plpython
发布时间:2020-12-16 22:55:05 所属栏目:Python 来源:网络整理
导读:我需要安装pl python,因为我收到了错误 could not access file "$libdir/plpython2": No such file or directory 当试图做python manage.py migrate时.我已经看到了关于如何安装这个软件包的不同建议,但没有一个对我有用,因为我需要使用python版本2.7(有些人
我需要安装pl
python,因为我收到了错误
could not access file "$libdir/plpython2": No such file or directory 当试图做python manage.py migrate时.我已经看到了关于如何安装这个软件包的不同建议,但没有一个对我有用,因为我需要使用python版本2.7(有些人建议安装python 3.2),我不能运行sudo apt-get install …因为我必须是在mac上工作. 我试过跑步 CREATE LANGUAGE plpython2u; 但我得到了错误 ERROR: could not access file "$libdir/plpython2": No such file or directory 另外,我试过pip / brew安装plpython.但没有结果.有什么建议? 解决方法
如果有人遇到同样的问题,我通过卸载postgres并使用brew install postgres安装它来解决这个问题–with-python
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |