在Windows 8.1上安装psycopg2 [英] Install psycopg2 on Windows 8.1

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

问题描述

我想在Windows 8.1 x64计算机上安装psycopg2,我正在使用,但似乎和我的情况不同。



如何在Windows 8.1 x64计算机上成功安装psycopg2?

解决方案

安装二进制文件psycopg2的分发版本与您的Python版本相同。



您的Psycopg2架构必须与您安装的Python二进制文件的架构匹配。因此,如果您使用的是32位Python 2.7,则必须获取32位psycopg2;如果您具有64位Python 2.7,则必须获得64位pycopg2。



这适用于包含二进制模块的所有Python模块,而不仅仅是psycopg2。 / p>

I want to install psycopg2 on Windows 8.1 x64 computer and I'm using python 2.7.6 from python.org. As I launch the installer as administrator, I got this error,

I press confirm and next button, but I can't choose or type my python directory.

I have seen this post after I got those problem, Psycopg installation on windows, but it seems that that is a different case as mine.

How to successfully install psycopg2 on Windows 8.1 x64 computer?

解决方案

Install the binary distribution of psycopg2 for the same architecture as your Python version.

Your Psycopg2 architecture must match the architecture of the Python binary you installed. So if you have a 32-bit Python 2.7 you must get the 32-bit psycopg2; if you have the 64-bit Python 2.7, you must get the 64-bit pycopg2.

This applies to any Python module that contains binary modules, not just psycopg2.

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

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