What I am trying to do
Trying to run python modules such as osgeo(GDAL), and others in blender. These modules have been installed on the system python environment using pip.
Things i have tried
Deleting blender python environment
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encoding'
Tried symlinking system python to replace blender python
Tried copying python libraries into blender libraries
Tried both python3.5 and python3.6 - i believe blender uses 3.6
What happens
Regardless of my attempts i get either the module cannot be found or python locale error
Other Information
I am running CentOS 7. Blender 2.78c from binaries x64(blender.org).
What doesn't makes sense to me is when I install on ubuntu using ppa I don't have this issue. I am trying to avoid compiling from source if possible for reason i am not going to get into here.
Any help is appreciated.
**Updates**
Installing Pip into blender environment
Pip now working in blenders python environment. gdal fails to compile with gcc error importing Python.h
Successfully symlinked system python to blender python:
/usr/lib/blender/2.78/python/bin/python3.5m --> /usr/bin/python3.5m
Blender now runs off system python environment but still does not see gdal
If i run /usr/bin/python3.5m --> import osgeo : it works
If i run /usr/lib/blender/2.78/python/bin/python3.5m --> import osgeo : fails to import