Here is my recipe that works for Anaconda2 (date, Sept. 2019) and ir worked perfectly for Ubuntu18 and conda version (4.7.11)
1. Download anaconda from https://www.anaconda.com/distribution/#download-section 2. chmod +x Anaconda2-2019.07-Linux-ppc64le.sh 2.1 -> change directory to /home/$USER/anaconda 3. After anaconda successfully installed, define PATH to include /home/$USER/anaconda/bin 4. install some minor dependencies reported elsewhere 4.1 conda update conda 4.2 conda install cmake lxml swig 4.3 conda install conda-build 4.4 conda install patchelf 5. Download openbabel (last release) from github and compile with anaconda dependencies: 5.1 git clone https://github.com/openbabel/openbabel 5.2 cd openbabel 5.3 mkdir build 5.4 cd build 5.5 cmake .. -DPERL_BINDINGS=ON -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON -DCMAKE_INSTALL_PREFIX=~/anaconda -DPYTHON_INCLUDE_DIR=~/anaconda/include/python2.7 -DCMAKE_LIBRARY_PATH=~/anaconda/lib -DSWIG_DIR=~/anaconda/share/swig/3.0.21/ -DSWIG_EXECUTABLE=~/anaconda/bin/swig -DPYTHON_LIBRARY=~/anaconda/lib/libpython2.7.so ## Please, verify files are in the correct path !! 6. Include variables into .bashrc export PATH=$PATH:/home/$USER/anaconda/bin export BABEL_LIBDIR=/home/$USER/anaconda/lib/openbabel/2.4.90 export BABEL_DATADIR=/home/$USER/anaconda/share/openbabel/2.4.90 export PYTHONPATH=$PYTHONPATH:/home/$USER/anaconda/lib/python2.7/site-packages * ## Important!!!. * python2.7> from openbabel import openbabel as op python2.7> from openbabel import pybel as py *Be aware "import openbabel" is already deprecated* Hope it works!! -- Sent from: http://forums.openbabel.org/General-discussion-f3090658.html _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss