0

I am new at this and I wonder why I cannot install or import geonamescache library in anaconda.

Apparently, I am the only one among my friends with this problem. Could you help me? Thanks in advance.

Screenshot of error

AMC
  • 2,642
  • 7
  • 13
  • 35
Juanunal
  • 5
  • 1
  • 2
  • Is your jupyter notebook using python 3? Try importing in the regular python repl. – SuperStormer Apr 18 '20 at 20:59
  • 1
    _I cannot install or import geonamescache library in anaconda._ Look at the path of the Python installation in the error message. Be careful when you're using pip, see https://www.anaconda.com/using-pip-in-a-conda-environment/. Also, please do not share information as images unless absolutely necessary. See: https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors, https://idownvotedbecau.se/imageofcode, https://idownvotedbecau.se/imageofanexception/. – AMC Apr 18 '20 at 23:42
  • I am using Python 3.7 for Mac OS. Sorry for sharing images I did not know how to put the output to show it. THANKS – Juanunal Apr 20 '20 at 00:16

2 Answers2

0

Not sure what OS and version of Anaconda you are using, so I can't be very specific.

According to the official list of packages for the distribution of Anaconda 3.7 for Mac OS(I am currently using it), there are currently 657 packages supported by anaconda(For Windows that number stands at around 620 at the moment). Here is the full list for up-to-date distributions.

I have looked into geonamescache, and it looks like it might not be supported by Anaconda at all. I suggest you looking into installing it via Pip(keep in mind that I would do that only if necessary as it is better to avoid using Pip with Conda that much). Look at this answer if interested.

Alex.Kh
  • 572
  • 7
  • 15
  • I am using I dowloaded Anaconda 2020.02 for Mac OS. Python version 3.7. When I use "pip install geonamescache" it says it does not find pip command. So, I used "pip3 install geonamescache --user" then it says is installed, but when I import it does not work. – Juanunal Apr 20 '20 at 00:19
0

If you're using conda you should make sure you jupyter notebook is either installed in the same conda environment containing geonamescache or has its kernel pointed to that environment. Check the output conda list in your activated environment for the said package. If you don't find it (I'm expecting you won't) it means pip3 installed geonamescache as a system wide package. You'll need to install it your activated environment using pip install geonamescache. Try not to use the pip3 command in conda environments.

droptop
  • 1,372
  • 13
  • 24