pyhsmm
pyhsmm copied to clipboard
Installing on linux (HPCC)
I had some mild trouble installing pyhsmm on a linux-based computing cluster...documenting various errors and fixes in one place for anyone else who encounters them. Most have been solved in the issues before, but there are a few key points.
- You need to have the packages
cython
,requests
, andfutures
installed before you runpyhsmm
installation. (This is because thesetup.py
script imports them -- the script isn't smart enough to look in its own list of requirements before importing the modules it uses :).) -
Don't use
python setup.py install
, usepip install .
This is critical. (See discussions e.g. here). - You have to patch
pybasicbayes
manually (at least until the latest fix gets pushed to pypi)
Full list of commands I ran: conda create -n pyhsmm_test_2 python=3.7 conda activate pyhsmm_test_2 pip install cython pip install requests pip install future cd [where you want the pyhsmm repo to live] git clone https://github.com/mattjj/pyhsmm.git cd pyhsmm pip install . pip install --upgrade git+https://github.com/mattjj/pybasicbayes.git
And then double-check with: python /path/to/pyhsmm/examples/hmm.py