Randoms 1) Install cython. sudo apt-get install cython 2) Rename your .py as .pyx file. python rename.py 3) compiling your srcCode python setup.py build_ext --inplace 4) Now Import your code like src.filename in main.py ** Enjoy :D **