Closed nipunbatra closed 11 years ago
It needs to go somewhere in your Python path. Here are three options:
ln -s /path/to/pyhsmm /path/to/site-packages/pyhsmm
cd /parent/directory; python pyhsmm/examples/hsmm.py
export PYTHONPATH=$PYTHONPATH:/path/to/pyhsmm/
I think perhaps you ran code directly inside the examples directory without having pyhsmm on your Python path. From there, you could do option 2 via cd ../..; python pyhsmm/examples/hsmm.py
.
Sure. Was just wondering if you had created a setup.py. Never the less, linking works. Maybe, this can be added to the Readme?
And ofcourse one could do a sys.path.append within the main code too.
Both are great ideas! I'll add something to the README now and put together a setup.py sometime in the future.
Hi, I cloned the repo as told on the Readme. Tried running examples from the example directory, but it would say that no module named pyhsmm. Does something else have to be run to get it into site packages etc.?