diff --git a/rocksdb/cache.pxd b/rocksdb/cache.pxd
index 740101b4b47ea7c27697ec13b3badb90623914cc..b9a5c78ae569882fcb3f4529caa59bc83368831f 100644
--- a/rocksdb/cache.pxd
+++ b/rocksdb/cache.pxd
@@ -1,4 +1,4 @@
-from std_memory cimport shared_ptr
+from .std_memory cimport shared_ptr
 
 cdef extern from "rocksdb/cache.h" namespace "rocksdb":
     cdef cppclass Cache: