I am trying to optimize my python code using pypy. While I am able to import most libraries and run succesfully, I am not able to import GDAL libraries. The same libraries when imported in Python 2.7 run fine.
I have tried adding GDAL location to PYTHONPATH, and even tried downloading GDAL Python bindings to PyPy directory, somehow pypy does not want to recognize GDAL, and comes with the following error.
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "ImportENC-P.py", line 50, in <module>
from osgeo import gdal, ogr, osr
File "B:\PYPY\site-packages\osgeo\__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "B:\PYPY\site-packages\osgeo\__init__.py", line 13, in swig_import_helper
import _gdal
ImportError: No module named _gdal