W
W
Wizzi82020-04-24 20:30:41
Python
Wizzi8, 2020-04-24 20:30:41

Module import error 'unhandled ImportError'. How to win?

When importing the module, it gives an error: Exception "unhandled ImportError"

Most likely this is due to the fact that two pythons 2 and 3 are installed
. Debian operating system.
The pyowm module is present
in pip list

How to connect this module?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2020-04-24
@Wizzzi8

In linux, in most cases, 2 pythons are already installed, since python2 is needed for the system itself (everyone can’t jump off it in any way)
For python3, you need to install it like this:
pip3 install pyowm
Also check which python you are using.
To get an answer here, you need more information: how the package was installed, in what environment you write the code, attach the code and error text (in text).

S
Sergey, 2020-04-24
@KingstonKMS

If you run python 3, then you need to install the module for python 3 through pip3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question