Open xuzhang5788 opened 6 years ago
Pay attention to which python you installed it with. If you pip3 install you should run it with python3. If you pip install (on most systems) you should run it with python2. Also make sure environmental variable PYTHON_PATH includes the TensorMol directory.
Best- John
I’ve found that sometimes sudo pip
actually refers to pip3 on my current Ubuntu 16.04 desktop. Specifying sudo pip2
can help if thats the issue.
My python is python3 and I used sudo pip3.
What operating system? Are you using anaconda, some other type of virtual environtment manager, or your systems python?
My python 3 is using anaconda.
It can also be helpful to print the output of
which python
which pip
python --version
pip --version
to make sure they all agree (or which python3
and which pip3
if you use those).
/home/xuzhang/anaconda3/bin/python /home/xuzhang/anaconda3/bin/pip Python 3.5.5 :: Anaconda custom (64-bit) pip 10.0.1 from /home/xuzhang/anaconda3/lib/python3.5/site-packages/pip (python 3.5)
Try just running sudo pip install -e .
again from the TensorMol directory.
It should work, if not then you could just wait a few weeks and it'll likely have a few changes making it easier to install.
I’m thinking that running pip with sudo is not using the anaconda version of pip. Sudo would likely point to the system version of pip. Try running without sudo or adding the —user
option to pip.
Thank you @jeherr, I used sudo pip3 install --user -e . it looks okay. But I import TensorMol, I got
Searching for Installed Optional Packages... Pyscf is not installed -- no ab-initio sampling
When I run test.py, I got nans for every item.
I followed your installation guide as
git clone https://github.com/jparkhill/TensorMol.git cd TensorMol
If you are using python2x
sudo pip install -e .
If you are using python3x
sudo pip3 install -e .
I got Successfully installed TensorMol-0.2
But when I run python test.py
I got File "test.py", line 4, in
from TensorMol import *
ImportError: No module named 'TensorMol'
Any help is highly appreciated