[英]pip install psycopg2 not working
After trying everything mentioned on the posts I could find about this same issue, I have yet to have any luck installing psycopg2 在尝试了关于同一问题的帖子中提到的所有内容之后,我还没有运气安装psycopg2
warning: manifest_maker: standard file '-c' not found 警告:manifest_maker:找不到标准文件'-c'
Error: pg_config executable not found. 错误:找不到pg_config可执行文件。
Please add the directory containing pg_config to the PATH 请将包含pg_config的目录添加到PATH
or specify the full executable path with the option: 或使用以下选项指定完整的可执行文件路径:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'. 或者使用'setup.cfg'中的pg_config选项。
pg_config is in /Applications/Postgres.app/Contents/Versions/9.3/bin. pg_config位于/Applications/Postgres.app/Contents/Versions/9.3/bin中。 So you need to add that directory to your PATH in ~/.bash_profile:
所以你需要在〜/ .bash_profile中将该目录添加到你的PATH中:
PATH=/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.