Open sinaeslami opened 2 years ago
Hi every one. I solved the problem and installed the package. here I want to summarize my experience. I have to first, mention that I'm rather new to python and developing and I'm much of a user than a developer; so some of solutions to my problems may seem obvious.
I went through installing this package during past 6 days among my other tasks and gave it a hundred of tries I guess, during which I encountered multiple errors and unexpected not-so-good-documented installation steps.
first of All the command "pip install pyhsmm" didn't work. I even tried "conda install pyhsmm" then it turned out that the library does not exist on any of conda channels.
Then I tried to install it manually using the repository. so I needed "cython" package installed, as well as gcc > 4.3.7 and Ms Build tools.
I pip installed the "Cython", downloaded and installed ms build tools 14.00; but installing the gcc the way that I mentioned in the description comment from this site didn't work. Then I installed gccc #106 issue way.
An important step which I missed but it affected the process, was to make a virtual environment.
so for proper installation, If i want to do it all over again, I'll follow the bellow steps:
download and install Microsoft Visual Studio 14.0 like mentioned in the issue description.
create a vitual environment. (I'm usein Anaconda jupyter notebook):
conda create --name your_pyhsmm_env_name python==3.7.9
higher versions of python is not recommended.
install cython:
conda install cython
install gcc:
conda install libpython
conda install -c msys2 m2w64-toolchain
conda install git
git clone https://github.com/mattjj/pyhsmm.git
cd pyhsmm
python setup.py install
in this stage you may be done. if there isn't any error regarding gcc, cython, or ms build tools cl.exe file, so go on and test one of examples in the examples folder. Otherwise you may need to go through some of other issues previously raised an answered.
note 1: in one of my numerous tries I had problem with pyhsmm.internals.hmm_messages_interface. for which the issue #109 may be of help, but for me it didn't and I found out that I hadn't install the cython. so I presume that if you follow the steps I listed, you wouldn't encounter this issue.
note 2: in another of my tries I went through installing all dependency python packages namely "numpy", "scipy", "matplotlib", "nose", "pybasicbayes >= 0.1.3", "future", "six" manually before running setup.py. One wouldn't need this if above steps followed as well as previous case.
Hi every one. I learned about this amazing hsmm library for python from a scientific paper. I now really need to use it. I tried to install it on my windows 10 laptop and pc. and none of them worked out. I searched every error I got and tried to solve them using previous issues.
GCC
I installed gcc using these recomendations. Then, this is my installed gcc version:
Microsoft Visual Studio 14.0
I got errors regarding Ms VS14.0, so I downloaded ms build tools from Microsoft VisualStudio Downloads website and installed the MSVC v14.0 - VS 2015 C++ build tools (v14.00). I tried both enterprise and community version of vs installer.
pyhsmm Installation
then I tried installing the package using pip:
now here is what I get:
any help is much appreciated.