Python Forum
Building Mapnik for a pyenv python. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: Building Mapnik for a pyenv python. (/thread-34223.html)



Building Mapnik for a pyenv python. - Larz60+ - Jul-07-2021

Mapnik is a package that displays images with maps generated by openstreetmap, or in my case Switch2osm.
it's home page is https://mapnik.org/.
It is not available yet with pip, so has to be built, and is rather a complicated process.

It took many trial and errors to get this right, so i thought I'd share with you the build instructions that finally worked.
They are located here: https://ircama.github.io/osm-carto-tutorials/tile-server-ubuntu/#install-mapnik-library

This is a critical part of an Sqitch2osm install, so if you are ever inclined, use above blog.

FYI: Switch2osm shouldn't be attempted unless you have a fast processor, and plenty of memory (64 gig recommended).
It uses about between 1TB and 1.5TB of disk space.

Edit: forgot to mention, use virtual environment for build.