1
今天我試圖使用新版本的Python(3.6)。我通過pip安裝了aiopg
(通過PyCharm解釋器部分工具)。 後,我試圖導入aiopg
,異常被happend:現在是aiopg支持python 3.6嗎?
from aiopg.sa import create_engine
File "C:\Python36\lib\site-packages\aiopg\__init__.py", line 5, in <module>
from .connection import connect, Connection, TIMEOUT as DEFAULT_TIMEOUT
File "C:\Python36\lib\site-packages\aiopg\connection.py", line 4, in <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'
什麼是fcntl
?這是Linux的Python本地模塊?無論如何它不起作用。任何解決方案
aiopg [似乎不支持Windows](https://github.com/aio-libs/aiopg/blob/master/setup.py#L38-L39)。 – dirn
@dim,3.5支持... – Broly
這似乎很奇怪,因爲'fcntl'是標準庫的一部分,並且已經有一段時間了。我不相信它可用於Windows。你可以自己導入3.5嗎? – dirn