E
E
Egoraccountmail2018-04-30 18:58:01
Python
Egoraccountmail, 2018-04-30 18:58:01

Libraries not working properly in Python?

I write import asyncio (I use Pycharm), everything is fine, it itself shows that there is such a library
But when the food is asyncio.get_event_loop(), etc., Pycharm highlights in yellow, and the interpreter gives an error
AttributeError: module 'asyncio' has no attribute 'get_event_loop'
Same goes for other libraries like threading
Why is that?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question