简体   繁体   English

安装rel模块时遇到错误

[英]Encountered error while installing rel module

I am getting an error in the statement: 我在声明中出现错误:

 import rel

I did 'pip3 install rel' and this is the error I get: 我做了'pip3 install rel',这是我得到的错误:

from rel import override, supported_methods, initialize, read, write, timeout, signal, event, dispatch, loop, abort, init, sys, EV_PERSIST, EV_READ, EV_SIGNAL, EV_TIMEOUT, EV_WRITE
ImportError: cannot import name 'override' from 'rel' (/private/var/folders/cl/5n1zfgzd7l9fs28spypxs1jr0000gn/T/pip-install-pn4kekfq/rel/rel/__init__.py)

Any help to fix it is highly appreciated. 修复它的任何帮助都受到高度赞赏。 Thanks! 谢谢!

It turns out that the rel module is available only for python v2.7 but I was trying to install it using default python3. 事实证明rel模块仅适用于python v2.7,但是我试图使用默认的python3安装它。 Installed it using python2 and it works fine now. 使用python2安装了它,现在可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM