0

pipを使用してコンピューターにPyGreSQLモジュールをインストールしようとしています。次のメッセージが表示されます: Collecting pygresql Using cached PyGreSQL-5.0.3-cp35-cp35m-win_amd64.whl Installing collected packages: pygresql Successfully installed pygresql-5.0.3 しかし、インポートしようとすると、次のメッセージはこれです

>>> import pygresql
   Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named 'pygresql'
 >>> from pygresql import _pg
   Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   ImportError: No module named 'pygresql'
4

2 に答える 2

0

彼らのサイトのドキュメントによると、そのとおりpgです。from pg import DB

于 2017-01-02T11:51:17.370 に答える