无法安装psycopg2 [英] Can't install psycopg2

查看:417
本文介绍了无法安装psycopg2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装psycopg2,所以我可以在python和Django使用postgresQL。我在最近几个小时试图安装它,我遇到了多个错误,我最新的一个我似乎无法解决。当我在命令控制台中在psycopg2上运行 setup.py install 时,它尝试安装它,但是当尝试执行链接时出现错误.exe 在Visual Studio 8文件夹中。这对我没有意义,考虑到当我从Windows资源管理器和命令控制台启动它时,我得到了可执行文件。我甚至为它做了一个环境变量。由于某种原因,它一直告诉我错误:命令C:\Program文件(x86)\Microsoft Visual Studio 9.0 \VC\BIN\link.exe退出状态失败1120 我已经广泛寻找一个解决方案,但我所尝试的一切都没有工作。任何人都有建议或可能的解决方案?

I'm trying to install psycopg2 so I can use postgresQL in python and Django. I have run into multiple errors in the last few hours trying to install it, and my latest one I can't seem to solve. When I run setup.py install on the psycopg2 in the command console it attempts to install it, but then gives me an error when trying to execute link.exein the Visual Studio 8 folder. This doesn't make sense to me, considering I got that executable to work when I launch it from Windows Explorer, and from the command console. I even made an environment variable for it. For some reason it keeps telling me "error: command C:\Program Files(x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe" failed with exit status 1120 I've looked extensively for a solution to this but everything I have tried didn't work. Anybody have suggestions or possible solutions?

推荐答案

结束这个3个半小时的过程,我经历是不必要的。 psycopg2的exe安装程序可以从此处下载

Turns out this 3 and a half hour process I've been going through was unecessary. an exe installer of psycopg2 can be downloaded from here

这篇关于无法安装psycopg2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆