在mac上安装psycopg2
时出现问题。我尝试了几种方法,比如用pip
安装它,还有自制程序。我也下载了所有的依赖项,但仍然无法安装。在
我收到以下错误消息,看起来很可怕:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/1c/nhs40gy513143dfqyblmt3r80000gn/T/pip-install-rxlPem/psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/1c/nhs40gy513143dfqyblmt3r80000gn/T/pip-record-93LksX/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/1c/nhs40gy513143dfqyblmt3r80000gn/T/pip-install-rxlPem/psycopg2/
可能是什么问题?在
编辑:可以找到完整的错误here,这似乎是最相关的部分:
^{pr2}$
psycopg2
has some install dependencies that might be giving you trouble。在本例中,安装过程似乎找不到^{但如果您不想为此烦恼,请尝试安装^{} :
对于任何一个寻求解决方案或未来参考的人来说
我在Mojave上安装psycopg2时遇到了这个问题,接下来,我可以找到指向psycopg2githubissue的链接。它的解决方案是安装缺少的库头,使用
这可能是莫哈韦的问题,enter link description here
相关问题 更多 >
编程相关推荐