Closed sanderjo closed 5 years ago
Short: I get "ImportError: No module named suncalc" ... although installed via "pip install suncalcPy"
Tips how to solve?
Long:
sander@sammie:~$ pip install suncalcPy Collecting suncalcPy Installing collected packages: suncalcPy Successfully installed suncalcPy-0.1
but I get:
sander@sammie:~$ python -c "import suncalc" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named suncalc sander@sammie:~$
It is really installed:
sander@sammie:~$ pip uninstall suncalcPy Uninstalling suncalcPy-0.1: /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/DESCRIPTION.rst /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/INSTALLER /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/METADATA /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/RECORD /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/WHEEL /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/metadata.json /home/sander/.local/lib/python2.7/site-packages/suncalcPy-0.1.dist-info/top_level.txt /home/sander/.local/lib/python2.7/site-packages/suncalcPy/suncalc.py /home/sander/.local/lib/python2.7/site-packages/suncalcPy/suncalc.pyc /home/sander/.local/lib/python2.7/site-packages/suncalcPy/test.py /home/sander/.local/lib/python2.7/site-packages/suncalcPy/test.pyc Proceed (y/n)? y Successfully uninstalled suncalcPy-0.1
and the uninstall works too:
sander@sammie:~$ pip uninstall suncalcPy Cannot uninstall requirement suncalcPy, not installed sander@sammie:~$
Clone repository and create a init.py file. This will allow you to import suncalc directly from the source code dir.
Short: I get "ImportError: No module named suncalc" ... although installed via "pip install suncalcPy"
Tips how to solve?
Long:
but I get:
It is really installed:
and the uninstall works too: