Thanks for the message.
I had trouble in figuring out the correct PYTHONPATH for my machine.
Hence, after pointing the exact path in the .bashrc file, i was able to
access the openbabel from python command promt.

I set the python path as follows.

export PYTHONPATH=/usr/local/lib64/python2.7/site-packages/:$PYTHONPATH


On Thu, Nov 21, 2019 at 11:15 PM Geoffrey Hutchison <
geoff.hutchi...@gmail.com> wrote:

> > But, when i am trying to import openbabel within the python, it shows the
> > import error.
>
> I would guess that you either have multiple versions  of Python on your
> computer, or at least multiple versions of the Open Babel bindings. Have
> you installed previous versions of the OB bindings?
>
> If so, you'll want to remove those older files, usually in site-packages.
>
> -Geoff



-- 
Lijo John
Research Student
C/o Dr. G. Narahari Sastry
Centre for Molecular Modeling
CSIR - IICT, Hyderabad
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to