Detrous/darksky

Issue trying to import, no module found

Closed this issue · 4 comments

I have version 1.9.0 of the package installed using pip3. However, attempting to run my code with python3 results in:

Traceback (most recent call last):
  File "log_cabin_control_server.py", line 12, in <module>
    from darksky.api import DarkSky  # Used for getting weather data from the Dark Sky API
ModuleNotFoundError: No module named 'darksky'

Try create a separate virtual environment and check it again. This error shows that you have not installed the package for Python that you using

It's working in the virtualenv. Do I continue using that?

Yes. Just keep a close eye on the environment you use to install packages

Thank you.