Issue trying to import, no module found
Closed this issue · 4 comments
DlljsCodes commented
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'
Detrous commented
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
DlljsCodes commented
It's working in the virtualenv. Do I continue using that?
Detrous commented
Yes. Just keep a close eye on the environment you use to install packages
DlljsCodes commented
Thank you.