markovmodel / msmtools

Tools for estimating and analyzing Markov state models
GNU Lesser General Public License v3.0
40 stars 27 forks source link

Installing msmtools using "pip install msmtools" fails #86

Closed hexcoffee closed 8 years ago

hexcoffee commented 8 years ago

@cwehmeyer asked me to post this issue. I called "pip install msmtools" on my Windows machine and it didn't work. This was the error report:

----------------------------------------
  Failed building wheel for msmtools
  Running setup.py clean for msmtools
Failed to build msmtools
Installing collected packages: msmtools
  Running setup.py install for msmtools ... error
    Complete output from command C:\Users\Johannes\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Johannes\\AppData\\Local\\Temp\\pip-build-js60mrsq\\msmtools\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Johannes\AppData\Local\Temp\pip-9ut94p7x-record\install-record.txt --single-version-externally-managed --compile:
    Warning: build in c:\users\johannes\appdata\local\temp\pip-build-js60mrsq\msmtools is using versioneer.py from C:\Users\Johannes\AppData\Local\Temp\pip-build-js60mrsq\msmtools\versioneer.py
    running install
    running build
    running build_py
    Warning: build in c:\users\johannes\appdata\local\temp\pip-build-js60mrsq\msmtools is using versioneer.py from C:\Users\Johannes\AppData\Local\Temp\pip-build-js60mrsq\msmtools\versioneer.py
    Warning: build in c:\users\johannes\appdata\local\temp\pip-build-js60mrsq\msmtools is using versioneer.py from C:\Users\Johannes\AppData\Local\Temp\pip-build-js60mrsq\msmtools\versioneer.py
    running build_ext
    building 'msmtools.estimation.dense.mle_trev_given_pi' extension
    error: Unable to find vcvarsall.bat

    ----------------------------------------
marscher commented 8 years ago

Do you have a C compiler installed?

https://stackoverflow.com/questions/101061/building-python-c-extension-modules-for-windows

I'm also curious why you are trying to compile yourself instead of using conda :)

marscher commented 8 years ago

https://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat This is probably a better compendium to read.

fabian-paul commented 8 years ago

Maybe this helps: we ran into this problem many times during the Pyemma workshop. Often the cause was that people installed anaconda python on top of an already present python installation and this confused the compiler. The solution was to remove python and start with a clean anaconda installation.

marscher commented 8 years ago

This message clearly indicates that Visual Studio is not set up properly.

hexcoffee commented 8 years ago

Yes, it worked with "conda install msmtools". I have VC++ installed. I did not have some python installed before installing anaconda python.

marscher commented 8 years ago

great