I'm using Anaconda to write geographic programs, so I need to use packages like Mapnik. After installing Mapnik in Anaconda2, it started to error. First about Mapnik itself and after do some actions now it's reached to this error:

from _mapnik import *

ImportError: DLL load failed: The specified module could not be found.

I installed it with pip command in Anaconda command prompt with some minor errors.

My system: Windows 8.1 64 bit, Anaconda 2, Python 2.7, Mapnik 2.2.0

  • I've tracked some Q&A similar or related to my case beforehand but any could help to solve mine! I guess it may be something unique! So I created this thread hoping to solve my problem step by step... – saman Dec 11 '19 at 7:45
  • In your folder anaconda environment, you have a folder "Lib" and in this folder you have a folder "site-packages" with all modules installed. Try to check the presence of the mapnik module. – Vincent Bré Dec 11 '19 at 9:01
  • Yes, I have two folders here named: 'mapnik' and 'mapnik-0.1.dist-info'. While the latter includes some files, the former (mapnik) includes two subfolders and a couple of files. The sub folders named: 'plugins' and 'pycache'... – saman Dec 11 '19 at 11:49
  • Try "import mapnik" instead of "import _mapnik" – Vincent Bré Dec 11 '19 at 11:55
  • I typed "import mapnik" at the first line of the code and got the above error! May I need to send my code here?! – saman Dec 11 '19 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.