Skip to content

Instantly share code, notes, and snippets.

@haridas
Last active May 8, 2017 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haridas/c43ed33d54e4e5a85375bea583e1c6af to your computer and use it in GitHub Desktop.
Save haridas/c43ed33d54e4e5a85375bea583e1c6af to your computer and use it in GitHub Desktop.
Compile python source from source, compile flags, and other settings for data science works.
  1. Ensure all the development files required to build custom bindings, mainly bzip2, and sqlite3 bingings are important.
  2. Build python with enabling the unicode flag usc4
$ sudo apt-get install libbz2-dev libsqlite3-dev
$ ./configure --enable-unicode=ucs4
$ make
$ make install

This build is helpful to work with any datascience works using sklearn, keras or tensorflow. The same can be used for web development works also ( Flask, Django etc ).

The command is tested on version python-2.7.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment