Python中文
首页
教程
问答
标签
搜索
登录
注册
Python中名为Python的重要模块
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我使用了关于<a href="https://github.com/nwcell/psycopg2-windows" rel="nofollow">https://github.com/nwcell/psycopg2-windows</a>和{a2}的文章来安装psycopg2,并在Python2.7和Cygwin上工作。在</p> <p>安装运行良好,我在/usr/lib/python2.7/site-packages/psycopg2-2.5.3-py2.7.egg/目录中看到了这个包。在</p> <p>但是导入不起作用。。你知道这个错误吗?在</p> <pre><code>Python 2.7.8 (default, Jul 25 2014, 14:04:36) [GCC 4.8.3] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import psycopg2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/psycopg2-2.5.3-py2.7.egg/psycopg2/__init__.py", line 50, in <module> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: No module named _psycopg </code></pre> <p>谢谢, 曼尼什语</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>必须安装<code>libpq</code>,有时它不是{<cd2>}的一部分。到现在为止,我成功地安装了<code>libpq5</code>。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何加速Python字符串匹配cod
8 回答
如何加速python嵌套循环?
5 回答
如何加速python循环
10 回答
如何加速python循环?
6 回答
如何加速Python执行?
9 回答
如何加速python数据帧中的嵌套循环?
4 回答
如何加速python曲线拟合二维数组?
2 回答
如何加速python的“turtle”功能,并在最后阻止它冻结
3 回答
如何加速python的启动和/或在加载库时减少文件搜索?
10 回答
如何加速python的执行
10 回答
如何加速python网络?
10 回答
如何加速python脚本并减少内存消耗?
5 回答
如何加速Python脚本迭代嵌套循环?
4 回答
如何加速Python请求
10 回答
如何加速Pywikibot?
7 回答
如何加速scipy.integrate.quad?
5 回答
如何加速scipy.ndimage.geometric_transform?
3 回答
如何加速scipy插值?
2 回答
如何加速SFTP传输?
1 回答
如何加速sklearn SVR?
5 回答