Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation is unsuccessful #32

Open
xuzhang5788 opened this issue May 23, 2018 · 10 comments
Open

installation is unsuccessful #32

xuzhang5788 opened this issue May 23, 2018 · 10 comments

Comments

@xuzhang5788
Copy link

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

@jparkhill
Copy link
Owner

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

@jeherr
Copy link
Collaborator

jeherr commented May 23, 2018

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.

@xuzhang5788
Copy link
Author

My python is python3 and I used sudo pip3.

@jeherr
Copy link
Collaborator

jeherr commented May 23, 2018

What operating system? Are you using anaconda, some other type of virtual environtment manager, or your systems python?

@xuzhang5788
Copy link
Author

My python 3 is using anaconda.

@jordangarside
Copy link
Collaborator

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).

@xuzhang5788
Copy link
Author

/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)

@jordangarside
Copy link
Collaborator

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.

@jeherr
Copy link
Collaborator

jeherr commented May 24, 2018

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.

@xuzhang5788
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants