hddm-devs / hddm

HDDM is a python module that implements Hierarchical Bayesian parameter estimation of Drift Diffusion Models (via PyMC).
http://ski.clps.brown.edu/hddm_docs/
Other
261 stars 117 forks source link

Installation on windows 10 keeps failing for version 0.9.8 #101

Open LeonaBaetz opened 1 year ago

LeonaBaetz commented 1 year ago

Hey everyone,

I am trying to install hddm 0.9.8 to my windows 10 machine and so far I’ve tried different things and yet nothing worked.

This is the website of hddm where installation that I am following is given: https://hddm.readthedocs.io/en/latest/

I have a dual boot with linux on my computer here. I tried the same stuff in Linux and got similar errors. I will describe the problems I had with windows because I would prefer to have it in windows, but if you have suggestions for linux I would also appreciate them! :)

You’ll see that there is a warning about a newer version of conda all the time. That appeared only today, so the errors were the same without the warning before. I have since updated conda and it's still the same.

The main issue seems to be with the Fortran compiler.

I create a python 3.7 environment:

conda create -n "hddm37" python=3.7

Collecting package metadata (current_repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 23.1.0 latest version: 23.3.1

Please update conda by running

$ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

 conda install conda=23.3.1

Package Plan

environment location: C:\Users\leonab\Miniconda3\envs\hddm37

added / updated specs:

The following NEW packages will be INSTALLED:

ca-certificates pkgs/main/win-64::ca-certificates-2023.01.10-haa95532_0 certifi pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0 openssl pkgs/main/win-64::openssl-1.1.1t-h2bbff1b_0 pip pkgs/main/win-64::pip-22.3.1-py37haa95532_0 python pkgs/main/win-64::python-3.7.16-h6244533_0 setuptools pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0 sqlite pkgs/main/win-64::sqlite-3.41.1-h2bbff1b_0 vc pkgs/main/win-64::vc-14.2-h21ff451_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 wheel pkgs/main/win-64::wheel-0.38.4-py37haa95532_0 wincertstore pkgs/main/win-64::wincertstore-0.2-py37haa95532_2

Proceed ([y]/n)? y

Downloading and Extracting Packages

Preparing transaction: done Verifying transaction: done Executing transaction: done #

To activate this environment, use

#

$ conda activate hddm37

#

To deactivate an active environment, use

#

$ conda deactivate

I activate it

conda activate hddm37

Then I follow the instructions of the website

(hddm37) C:\Users\leonab>pip install cython Collecting cython Using cached Cython-0.29.34-py2.py3-none-any.whl (988 kB) Installing collected packages: cython Successfully installed cython-0.29.34

First error:

(hddm37) C:\Users\leonab>pip install pymc==2.3.8 Collecting pymc==2.3.8 Using cached pymc-2.3.8.tar.gz (385 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] Traceback (most recent call last): File "", line 36, in File "", line 34, in File "C:\Users\leonab\AppData\Local\Temp\pip-install-ujfnen7s\pymc_ff59a85ead184b36818ec24fd83622c6\setup.py", line 167, in setup_pymc() File "C:\Users\leonab\AppData\Local\Temp\pip-install-ujfnen7s\pymc_ff59a85ead184b36818ec24fd83622c6\setup.py", line 124, in setup_pymc .format(numpy_req_str)) ImportError: NumPy is not installed. PyMC requires NumPy >= 1.8.

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Then I try to simply install numpy:

(hddm37) C:\Users\leonab>pip install numpy Collecting numpy Using cached numpy-1.21.6-cp37-cp37m-win_amd64.whl (14.0 MB) Installing collected packages: numpy Successfully installed numpy-1.21.6

I try again:

(hddm37) C:\Users\leonab>pip install pymc==2.3.8 Collecting pymc==2.3.8 Using cached pymc-2.3.8.tar.gz (385 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: pymc Building wheel for pymc (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [185 lines of output] Could not locate executable g77 Could not locate executable f77 Could not locate executable ifort Could not locate executable ifl Could not locate executable f90 Could not locate executable DF Could not locate executable efl Could not locate executable gfortran Could not locate executable f95 Could not locate executable g95 Could not locate executable efort Could not locate executable efc Could not locate executable flang don't know how to compile Fortran code on platform 'nt' C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy\distutils\system_info.py:1858: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. return getattr(self, '_calcinfo{}'.format(name))() C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy\distutils\system_info.py:1858: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. return getattr(self, '_calcinfo{}'.format(name))() C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy\distutils\system_info.py:581: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. return cl().get_info(notfound_action) No optimized BLAS or Lapack libraries found, building from source. This may take a while... No optimized BLAS or Lapack libraries found, building from source. This may take a while... running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "pymc.flib" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\flib-f2pywrappers.f' to sources. building extension "pymc.LazyFunction" sources building extension "pymc.Container_values" sources building extension "pymc.gp.linalg_utils" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\gp\linalg_utils-f2pywrappers.f' to sources. building extension "pymc.gp.incomplete_chol" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\gp\incomplete_chol-f2pywrappers.f' to sources. building extension "pymc.gp.cov_funs.isotropic_cov_funs" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\gp\cov_funs\isotropic_cov_funs-f2pywrappers.f' to sources. building extension "pymc.gp.cov_funs.distances" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs' to include_dirs. build_src: building npy-pkg config files C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build_py creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\pymc copying pymc\calc_utils.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\CircularStochastic.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\CommonDeterministics.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Container.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\datatypes.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\decorators.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\diagnostics.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\distributions.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\graph.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\InstantiationDecorators.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Matplot.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\MCMC.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Model.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Node.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\NormalApproximation.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\NumpyDeterministics.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\progressbar.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\PyMCObjects.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\ScipyDistributions.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\six.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\StepMethods.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\threadpool.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\utils.py -> build\lib.win-amd64-cpython-37\pymc copying pymc__init.py -> build\lib.win-amd64-cpython-37\pymc creating build\lib.win-amd64-cpython-37\pymc\database copying pymc/database\base.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\hdf5.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\hdf5ea.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\no_trace.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\pickle.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\ram.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\sqlite.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\txt.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database__init.py -> build\lib.win-amd64-cpython-37\pymc/database creating build\lib.win-amd64-cpython-37\pymc\examples copying pymc/examples\custom_step.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_gof.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_linear.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_missing.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_null.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\gelman_bioassay.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\melanoma.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\melanoma_data.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\weibull_fit.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\weibull_fit_gof.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\zip.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples__init__.py -> build\lib.win-amd64-cpython-37\pymc/examples creating build\lib.win-amd64-cpython-37\pymc\examples\gp copying pymc/examples/gp\basiscov.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\cov.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\covparams.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\MCMC.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\mean.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\mesh_choice.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\observation.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\PyMCmodel.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\realizations.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\init__.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp creating build\lib.win-amd64-cpython-37\pymc\tests copying pymc/tests\objectmodel.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_adaptive.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_AM.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_basiscov.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_binary_step.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_container.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_convergence.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_cov.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_database.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_distributions.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_GP_MCMC.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_gradients.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_graph.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_instantiation.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_interactive.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_MCMCSampler.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_mean.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_missing.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_norm_approx.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_observation.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_realization.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_slice.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_special_methods.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_utils.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\init.py -> build\lib.win-amd64-cpython-37\pymc/tests creating build\lib.win-amd64-cpython-37\pymc\gp copying pymc/gp\BasisCovariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\Covariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\FullRankCovariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\gpplots.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\GPutils.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\gp_submodel.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\Mean.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\NearlyFullRankCovariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\Realization.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\step_methods.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\init.py -> build\lib.win-amd64-cpython-37\pymc/gp creating build\lib.win-amd64-cpython-37\pymc\gp\cov_funs copying pymc/gp/cov_funs\bases.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\brownian.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\cov_utils.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\nsmatern.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\wrapped_distances.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\init__.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1013] : testing flags (/O2) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ CCompilerOpt.cache_flush[809] : write cache to path -> C:\Users\leonab\AppData\Local\Temp\pip-install-mwnygr2e\pymc_77d3391c963443e5b875f89cc10fcf58\build\temp.win-amd64-cpython-37\Release\ccompiler_opt_cache_ext.py [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pymc Running setup.py clean for pymc Failed to build pymc Installing collected packages: pymc Running setup.py install for pymc ... error error: subprocess-exited-with-error

× Running setup.py install for pymc did not run successfully. │ exit code: 1 ╰─> [185 lines of output] Could not locate executable g77 Could not locate executable f77 Could not locate executable ifort Could not locate executable ifl Could not locate executable f90 Could not locate executable DF Could not locate executable efl Could not locate executable gfortran Could not locate executable f95 Could not locate executable g95 Could not locate executable efort Could not locate executable efc Could not locate executable flang don't know how to compile Fortran code on platform 'nt' C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy\distutils\system_info.py:1858: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. return getattr(self, '_calcinfo{}'.format(name))() C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy\distutils\system_info.py:1858: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. return getattr(self, '_calcinfo{}'.format(name))() C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy\distutils\system_info.py:581: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. return cl().get_info(notfound_action) No optimized BLAS or Lapack libraries found, building from source. This may take a while... No optimized BLAS or Lapack libraries found, building from source. This may take a while... running install C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "pymc.flib" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\flib-f2pywrappers.f' to sources. building extension "pymc.LazyFunction" sources building extension "pymc.Container_values" sources building extension "pymc.gp.linalg_utils" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\gp\linalg_utils-f2pywrappers.f' to sources. building extension "pymc.gp.incomplete_chol" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\gp\incomplete_chol-f2pywrappers.f' to sources. building extension "pymc.gp.cov_funs.isotropic_cov_funs" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs' to include_dirs. adding 'build\src.win-amd64-3.7\pymc\gp\cov_funs\isotropic_cov_funs-f2pywrappers.f' to sources. building extension "pymc.gp.cov_funs.distances" sources f2py options: [] adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs\fortranobject.c' to sources. adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\pymc\gp\cov_funs' to include_dirs. build_src: building npy-pkg config files running build_py creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\pymc copying pymc\calc_utils.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\CircularStochastic.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\CommonDeterministics.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Container.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\datatypes.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\decorators.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\diagnostics.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\distributions.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\graph.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\InstantiationDecorators.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Matplot.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\MCMC.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Model.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\Node.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\NormalApproximation.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\NumpyDeterministics.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\progressbar.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\PyMCObjects.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\ScipyDistributions.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\six.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\StepMethods.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\threadpool.py -> build\lib.win-amd64-cpython-37\pymc copying pymc\utils.py -> build\lib.win-amd64-cpython-37\pymc copying pymc__init.py -> build\lib.win-amd64-cpython-37\pymc creating build\lib.win-amd64-cpython-37\pymc\database copying pymc/database\base.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\hdf5.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\hdf5ea.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\no_trace.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\pickle.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\ram.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\sqlite.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database\txt.py -> build\lib.win-amd64-cpython-37\pymc/database copying pymc/database__init.py -> build\lib.win-amd64-cpython-37\pymc/database creating build\lib.win-amd64-cpython-37\pymc\examples copying pymc/examples\custom_step.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_gof.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_linear.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_missing.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\disaster_model_null.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\gelman_bioassay.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\melanoma.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\melanoma_data.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\weibull_fit.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\weibull_fit_gof.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples\zip.py -> build\lib.win-amd64-cpython-37\pymc/examples copying pymc/examples__init__.py -> build\lib.win-amd64-cpython-37\pymc/examples creating build\lib.win-amd64-cpython-37\pymc\examples\gp copying pymc/examples/gp\basiscov.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\cov.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\covparams.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\MCMC.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\mean.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\mesh_choice.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\observation.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\PyMCmodel.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\realizations.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp copying pymc/examples/gp\init__.py -> build\lib.win-amd64-cpython-37\pymc/examples/gp creating build\lib.win-amd64-cpython-37\pymc\tests copying pymc/tests\objectmodel.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_adaptive.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_AM.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_basiscov.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_binary_step.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_container.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_convergence.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_cov.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_database.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_distributions.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_GP_MCMC.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_gradients.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_graph.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_instantiation.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_interactive.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_MCMCSampler.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_mean.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_missing.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_norm_approx.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_observation.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_realization.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_slice.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_special_methods.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\test_utils.py -> build\lib.win-amd64-cpython-37\pymc/tests copying pymc/tests\init.py -> build\lib.win-amd64-cpython-37\pymc/tests creating build\lib.win-amd64-cpython-37\pymc\gp copying pymc/gp\BasisCovariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\Covariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\FullRankCovariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\gpplots.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\GPutils.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\gp_submodel.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\Mean.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\NearlyFullRankCovariance.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\Realization.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\step_methods.py -> build\lib.win-amd64-cpython-37\pymc/gp copying pymc/gp\init.py -> build\lib.win-amd64-cpython-37\pymc/gp creating build\lib.win-amd64-cpython-37\pymc\gp\cov_funs copying pymc/gp/cov_funs\bases.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\brownian.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\cov_utils.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\nsmatern.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\wrapped_distances.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs copying pymc/gp/cov_funs\init__.py -> build\lib.win-amd64-cpython-37\pymc/gp/cov_funs running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1013] : testing flags (/O2) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ CCompilerOpt.cache_flush[809] : write cache to path -> C:\Users\leonab\AppData\Local\Temp\pip-install-mwnygr2e\pymc_77d3391c963443e5b875f89cc10fcf58\build\temp.win-amd64-cpython-37\Release\ccompiler_opt_cache_ext.py [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> pymc

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

I try the other way of installation on the website:

(hddm37) C:\Users\leonab>conda install -c pymc hddm Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: | Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.

So I try something that I found here: https://groups.google.com/g/hddm-users/c/0dhnfnQQr_k/m/E1StAUu9BAAJ

(hddm37) C:\Users\leonab>conda install conda-build Collecting package metadata (current_repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 23.1.0 latest version: 23.3.1

Please update conda by running

$ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

 conda install conda=23.3.1

Package Plan

environment location: C:\Users\leonab\Miniconda3\envs\hddm37

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
beautifulsoup4-4.11.1      |   py37haa95532_0         190 KB
brotlipy-0.7.0             |py37h2bbff1b_1003         337 KB
cffi-1.15.1                |   py37h2bbff1b_3         236 KB
chardet-4.0.0              |py37haa95532_1003         209 KB
conda-4.14.0               |   py37h03978a9_0        1018 KB  conda-forge
conda-build-3.21.9         |   py37h03978a9_1         582 KB  conda-forge
conda-package-handling-2.0.2|   py37haa95532_0         286 KB
conda-package-streaming-0.7.0|   py37haa95532_0          27 KB
cryptography-39.0.1        |   py37h21b164f_0         1.0 MB
filelock-3.9.0             |   py37haa95532_0          19 KB
glob2-0.7                  |     pyhd3eb1b0_0          12 KB
idna-3.4                   |   py37haa95532_0          92 KB
jinja2-3.1.2               |   py37haa95532_0         210 KB
libarchive-3.6.2           |       h2033e3e_1         1.8 MB
liblief-0.12.3             |       hd77b12b_0         2.4 MB
libxml2-2.10.3             |       h0ad7f3c_0         2.9 MB
m2-msys2-runtime-2.5.0.17080.65c939c|                3         3.0 MB
m2-patch-2.7.5             |                2          89 KB
markupsafe-2.1.1           |   py37h2bbff1b_0          26 KB
menuinst-1.4.19            |   py37h59b6b97_0          94 KB
msys2-conda-epoch-20160418 |                1           2 KB
pkginfo-1.8.2              |     pyhd3eb1b0_0          27 KB
psutil-5.9.0               |   py37h2bbff1b_0         347 KB
py-lief-0.12.3             |   py37hd77b12b_0         2.0 MB
pycosat-0.6.4              |   py37h2bbff1b_0          72 KB
pyopenssl-23.0.0           |   py37haa95532_0          97 KB
pysocks-1.7.1              |           py37_1          28 KB
python-libarchive-c-2.9    |     pyhd3eb1b0_1          47 KB
pyyaml-6.0                 |   py37h2bbff1b_1         144 KB
requests-2.28.1            |   py37haa95532_0          99 KB
ripgrep-13.0.0             |       haa95532_0         6.0 MB
ruamel_yaml-0.15.80        |py37hcc03f2d_1007         273 KB  conda-forge
soupsieve-2.3.2.post1      |   py37haa95532_0          66 KB
toolz-0.12.0               |   py37haa95532_0         105 KB
tqdm-4.64.1                |   py37haa95532_0         143 KB
urllib3-1.26.14            |   py37haa95532_0         192 KB
win_inet_pton-1.1.0        |   py37haa95532_0          35 KB
zstandard-0.19.0           |   py37h2bbff1b_0         339 KB
zstd-1.5.4                 |       hd43e919_0         683 KB
------------------------------------------------------------
                                       Total:        25.0 MB

The following NEW packages will be INSTALLED:

beautifulsoup4 pkgs/main/win-64::beautifulsoup4-4.11.1-py37haa95532_0 brotlipy pkgs/main/win-64::brotlipy-0.7.0-py37h2bbff1b_1003 bzip2 pkgs/main/win-64::bzip2-1.0.8-he774522_0 cffi pkgs/main/win-64::cffi-1.15.1-py37h2bbff1b_3 chardet pkgs/main/win-64::chardet-4.0.0-py37haa95532_1003 charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0 colorama pkgs/main/win-64::colorama-0.4.6-py37haa95532_0 conda conda-forge/win-64::conda-4.14.0-py37h03978a9_0 conda-build conda-forge/win-64::conda-build-3.21.9-py37h03978a9_1 conda-package-han~ pkgs/main/win-64::conda-package-handling-2.0.2-py37haa95532_0 conda-package-str~ pkgs/main/win-64::conda-package-streaming-0.7.0-py37haa95532_0 cryptography pkgs/main/win-64::cryptography-39.0.1-py37h21b164f_0 filelock pkgs/main/win-64::filelock-3.9.0-py37haa95532_0 glob2 pkgs/main/noarch::glob2-0.7-pyhd3eb1b0_0 idna pkgs/main/win-64::idna-3.4-py37haa95532_0 jinja2 pkgs/main/win-64::jinja2-3.1.2-py37haa95532_0 libarchive pkgs/main/win-64::libarchive-3.6.2-h2033e3e_1 libiconv pkgs/main/win-64::libiconv-1.16-h2bbff1b_2 liblief pkgs/main/win-64::liblief-0.12.3-hd77b12b_0 libxml2 pkgs/main/win-64::libxml2-2.10.3-h0ad7f3c_0 lz4-c pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_0 m2-msys2-runtime pkgs/msys2/win-64::m2-msys2-runtime-2.5.0.17080.65c939c-3 m2-patch pkgs/msys2/win-64::m2-patch-2.7.5-2 markupsafe pkgs/main/win-64::markupsafe-2.1.1-py37h2bbff1b_0 menuinst pkgs/main/win-64::menuinst-1.4.19-py37h59b6b97_0 msys2-conda-epoch pkgs/msys2/win-64::msys2-conda-epoch-20160418-1 pkginfo pkgs/main/noarch::pkginfo-1.8.2-pyhd3eb1b0_0 psutil pkgs/main/win-64::psutil-5.9.0-py37h2bbff1b_0 py-lief pkgs/main/win-64::py-lief-0.12.3-py37hd77b12b_0 pycosat pkgs/main/win-64::pycosat-0.6.4-py37h2bbff1b_0 pycparser pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0 pyopenssl pkgs/main/win-64::pyopenssl-23.0.0-py37haa95532_0 pysocks pkgs/main/win-64::pysocks-1.7.1-py37_1 python-libarchive~ pkgs/main/noarch::python-libarchive-c-2.9-pyhd3eb1b0_1 python_abi conda-forge/win-64::python_abi-3.7-2_cp37m pytz pkgs/main/win-64::pytz-2022.7-py37haa95532_0 pyyaml pkgs/main/win-64::pyyaml-6.0-py37h2bbff1b_1 requests pkgs/main/win-64::requests-2.28.1-py37haa95532_0 ripgrep pkgs/main/win-64::ripgrep-13.0.0-haa95532_0 ruamel_yaml conda-forge/win-64::ruamel_yaml-0.15.80-py37hcc03f2d_1007 six pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1 soupsieve pkgs/main/win-64::soupsieve-2.3.2.post1-py37haa95532_0 toolz pkgs/main/win-64::toolz-0.12.0-py37haa95532_0 tqdm pkgs/main/win-64::tqdm-4.64.1-py37haa95532_0 urllib3 pkgs/main/win-64::urllib3-1.26.14-py37haa95532_0 win_inet_pton pkgs/main/win-64::win_inet_pton-1.1.0-py37haa95532_0 xz pkgs/main/win-64::xz-5.2.10-h8cc25b3_1 yaml pkgs/main/win-64::yaml-0.2.5-he774522_0 zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_0 zstandard pkgs/main/win-64::zstandard-0.19.0-py37h2bbff1b_0 zstd pkgs/main/win-64::zstd-1.5.4-hd43e919_0

Proceed ([y]/n)? y

Downloading and Extracting Packages

Preparing transaction: done Verifying transaction: done Executing transaction: done

(hddm37) C:\Users\leonab>conda install pymc=2.3.8 -c conda-forge Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: done

Package Plan

environment location: C:\Users\leonab\Miniconda3\envs\hddm37

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
blas-1.0                   |              mkl           6 KB
ca-certificates-2022.12.7  |       h5b45459_0         143 KB  conda-forge
certifi-2022.12.7          |     pyhd8ed1ab_0         147 KB  conda-forge
conda-22.9.0               |   py37h03978a9_1         976 KB  conda-forge
icc_rt-2022.1.0            |       h6049295_2         6.5 MB
intel-openmp-2023.0.0      |   h57928b3_25922         2.1 MB  conda-forge
mkl-2020.4                 |     hb70f87d_311       172.4 MB  conda-forge
mkl-service-2.3.0          |   py37h4ab8f01_2          49 KB  conda-forge
mkl_fft-1.2.0              |   py37h45dec08_0         118 KB
mkl_random-1.1.1           |   py37h3bbf574_0         267 KB  conda-forge
numpy-1.14.6               |   py37ha06f490_5          46 KB
numpy-base-1.14.6          |   py37hc3f5095_5         3.1 MB
numpy-devel-1.14.6         |   py37h4ba5984_5          44 KB
pymc-2.3.8                 |   py37h9b6ce38_0         538 KB
scipy-1.5.2                |   py37h9439919_0        11.8 MB
------------------------------------------------------------
                                       Total:       198.3 MB

The following NEW packages will be INSTALLED:

blas pkgs/main/win-64::blas-1.0-mkl icc_rt pkgs/main/win-64::icc_rt-2022.1.0-h6049295_2 intel-openmp conda-forge/win-64::intel-openmp-2023.0.0-h57928b3_25922 mkl conda-forge/win-64::mkl-2020.4-hb70f87d_311 mkl-service conda-forge/win-64::mkl-service-2.3.0-py37h4ab8f01_2 mkl_fft pkgs/main/win-64::mkl_fft-1.2.0-py37h45dec08_0 mkl_random conda-forge/win-64::mkl_random-1.1.1-py37h3bbf574_0 numpy pkgs/main/win-64::numpy-1.14.6-py37ha06f490_5 numpy-base pkgs/main/win-64::numpy-base-1.14.6-py37hc3f5095_5 numpy-devel pkgs/main/win-64::numpy-devel-1.14.6-py37h4ba5984_5 pymc pkgs/main/win-64::pymc-2.3.8-py37h9b6ce38_0 scipy pkgs/main/win-64::scipy-1.5.2-py37h9439919_0

The following packages will be UPDATED:

conda 4.14.0-py37h03978a9_0 --> 22.9.0-py37h03978a9_1

The following packages will be SUPERSEDED by a higher-priority channel:

ca-certificates pkgs/main::ca-certificates-2023.01.10~ --> conda-forge::ca-certificates-2022.12.7-h5b45459_0 certifi pkgs/main/win-64::certifi-2022.12.7-p~ --> conda-forge/noarch::certifi-2022.12.7-pyhd8ed1ab_0

Proceed ([y]/n)? ^y Invalid choice: ^y Proceed ([y]/n)? y

Downloading and Extracting Packages mkl_random-1.1.1 | 267 KB | ############################################################################ | 100% mkl_fft-1.2.0 | 118 KB | ############################################################################ | 100% certifi-2022.12.7 | 147 KB | ############################################################################ | 100% pymc-2.3.8 | 538 KB | ############################################################################ | 100% conda-22.9.0 | 976 KB | ############################################################################ | 100% ca-certificates-2022 | 143 KB | ############################################################################ | 100% intel-openmp-2023.0. | 2.1 MB | ############################################################################ | 100% numpy-devel-1.14.6 | 44 KB | ############################################################################ | 100% scipy-1.5.2 | 11.8 MB | ############################################################################ | 100% mkl-service-2.3.0 | 49 KB | ############################################################################ | 100% icc_rt-2022.1.0 | 6.5 MB | ############################################################################ | 100% mkl-2020.4 | 172.4 MB | ############################################################################ | 100% numpy-1.14.6 | 46 KB | ############################################################################ | 100% numpy-base-1.14.6 | 3.1 MB | ############################################################################ | 100% blas-1.0 | 6 KB | ############################################################################ | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Retrieving notices: ...working... done

(hddm37) C:\Users\leonab>conda install pandas patsy Collecting package metadata (current_repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 22.9.0 latest version: 23.3.1

Please update conda by running

$ conda update -n base -c conda-forge conda

Package Plan

environment location: C:\Users\leonab\Miniconda3\envs\hddm37

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
ca-certificates-2023.01.10 |       haa95532_0         121 KB
certifi-2022.12.7          |   py37haa95532_0         149 KB
conda-22.11.1              |   py37haa95532_4         895 KB
importlib-metadata-4.11.3  |   py37haa95532_0          40 KB
importlib_metadata-4.11.3  |       hd3eb1b0_0          12 KB
pandas-0.25.3              |   py37he350917_0         9.6 MB  conda-forge
patsy-0.5.3                |   py37haa95532_0         288 KB
pluggy-1.0.0               |   py37haa95532_1          29 KB
python-dateutil-2.8.2      |     pyhd3eb1b0_0         233 KB
ruamel-1.0                 |   py37haa95532_2           6 KB
ruamel.yaml-0.16.5         |   py37hfa6e2cd_0         165 KB  conda-forge
setuptools-59.8.0          |   py37h03978a9_1         1.0 MB  conda-forge
typing_extensions-4.1.1    |     pyh06a4308_0          28 KB
zipp-3.11.0                |   py37haa95532_0          20 KB
------------------------------------------------------------
                                       Total:        12.6 MB

The following NEW packages will be INSTALLED:

importlib-metadata pkgs/main/win-64::importlib-metadata-4.11.3-py37haa95532_0 None importlib_metadata pkgs/main/noarch::importlib_metadata-4.11.3-hd3eb1b0_0 None pandas conda-forge/win-64::pandas-0.25.3-py37he350917_0 None patsy pkgs/main/win-64::patsy-0.5.3-py37haa95532_0 None pluggy pkgs/main/win-64::pluggy-1.0.0-py37haa95532_1 None python-dateutil pkgs/main/noarch::python-dateutil-2.8.2-pyhd3eb1b0_0 None ruamel pkgs/main/win-64::ruamel-1.0-py37haa95532_2 None ruamel.yaml conda-forge/win-64::ruamel.yaml-0.16.5-py37hfa6e2cd_0 None typing_extensions pkgs/main/noarch::typing_extensions-4.1.1-pyh06a4308_0 None zipp pkgs/main/win-64::zipp-3.11.0-py37haa95532_0 None

The following packages will be UPDATED:

ca-certificates conda-forge::ca-certificates-2022.12.~ --> pkgs/main::ca-certificates-2023.01.10-haa95532_0 None conda conda-forge::conda-22.9.0-py37h03978a~ --> pkgs/main::conda-22.11.1-py37haa95532_4 None

The following packages will be SUPERSEDED by a higher-priority channel:

certifi conda-forge/noarch::certifi-2022.12.7~ --> pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0 None setuptools pkgs/main::setuptools-65.6.3-py37haa9~ --> conda-forge::setuptools-59.8.0-py37h03978a9_1 None

Proceed ([y]/n)? y

Downloading and Extracting Packages certifi-2022.12.7 | 149 KB | ############################################################################ | 100% patsy-0.5.3 | 288 KB | ############################################################################ | 100% ruamel.yaml-0.16.5 | 165 KB | ############################################################################ | 100% typing_extensions-4. | 28 KB | ############################################################################ | 100% ruamel-1.0 | 6 KB | ############################################################################ | 100% importlib-metadata-4 | 40 KB | ############################################################################ | 100% pandas-0.25.3 | 9.6 MB | ############################################################################ | 100% setuptools-59.8.0 | 1.0 MB | ############################################################################ | 100% ca-certificates-2023 | 121 KB | ############################################################################ | 100% importlib_metadata-4 | 12 KB | ############################################################################ | 100% python-dateutil-2.8. | 233 KB | ############################################################################ | 100% conda-22.11.1 | 895 KB | ############################################################################ | 100% zipp-3.11.0 | 20 KB | ############################################################################ | 100% pluggy-1.0.0 | 29 KB | ############################################################################ | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Retrieving notices: ...working... done

(hddm37) C:\Users\leonab>pip install hddm Collecting hddm Using cached HDDM-0.9.9.tar.gz (7.5 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [73 lines of output] Compiling src/wfpt.pyx because it depends on C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy__init__.pxd. Compiling src/cdfdif_wrapper.pyx because it depends on C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\numpy__init__.pxd. [1/2] Cythonizing src/cdfdif_wrapper.pyx [2/2] Cythonizing src/wfpt.pyx error: subprocess-exited-with-error

    Building wheel for ssm-simulators (pyproject.toml) did not run successfully.
    exit code: 1

    [25 lines of output]
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-cpython-37
    creating build\lib.win-amd64-cpython-37\ssms
    copying ssms\__init__.py -> build\lib.win-amd64-cpython-37\ssms
    creating build\lib.win-amd64-cpython-37\ssms\basic_simulators
    copying ssms\basic_simulators\boundary_functions.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators
    copying ssms\basic_simulators\drift_functions.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators
    copying ssms\basic_simulators\simulator.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators
    copying ssms\basic_simulators\__init__.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators
    creating build\lib.win-amd64-cpython-37\ssms\config
    copying ssms\config\config.py -> build\lib.win-amd64-cpython-37\ssms\config
    copying ssms\config\__init__.py -> build\lib.win-amd64-cpython-37\ssms\config
    creating build\lib.win-amd64-cpython-37\ssms\dataset_generators
    copying ssms\dataset_generators\lan_mlp.py -> build\lib.win-amd64-cpython-37\ssms\dataset_generators
    copying ssms\dataset_generators\snpe.py -> build\lib.win-amd64-cpython-37\ssms\dataset_generators
    copying ssms\dataset_generators\__init__.py -> build\lib.win-amd64-cpython-37\ssms\dataset_generators
    creating build\lib.win-amd64-cpython-37\ssms\support_utils
    copying ssms\support_utils\kde_class.py -> build\lib.win-amd64-cpython-37\ssms\support_utils
    copying ssms\support_utils\__init__.py -> build\lib.win-amd64-cpython-37\ssms\support_utils
    running build_ext
    building 'cssm' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for ssm-simulators
  ERROR: Failed to build one or more wheels
  C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
    SetuptoolsDeprecationWarning,
  Traceback (most recent call last):
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\installer.py", line 82, in fetch_build_egg
      subprocess.check_call(cmd)
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\subprocess.py", line 363, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['C:\\Users\\leonab\\Miniconda3\\envs\\hddm37\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\leonab\\AppData\\Local\\Temp\\tmpk8x5niae', '--quiet', 'ssm-simulators>=0.3.0']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 36, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\leonab\AppData\Local\Temp\pip-install-gk6ivqpp\hddm_9055c998df364a819abf1b7d52a33c00\setup.py", line 43, in <module>
      ext_modules = ext_modules
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\__init__.py", line 152, in setup
      _install_setup_requires(attrs)
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\__init__.py", line 147, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\dist.py", line 815, in fetch_build_eggs
      replace_conflicting=True,
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\pkg_resources\__init__.py", line 773, in resolve
      replace_conflicting=replace_conflicting
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\pkg_resources\__init__.py", line 1056, in best_match
      return self.obtain(req, installer)
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\pkg_resources\__init__.py", line 1068, in obtain
      return installer(requirement)
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\dist.py", line 883, in fetch_build_egg
      return fetch_build_egg(self, req)
    File "C:\Users\leonab\Miniconda3\envs\hddm37\lib\site-packages\setuptools\installer.py", line 84, in fetch_build_egg
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['C:\\Users\\leonab\\Miniconda3\\envs\\hddm37\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\leonab\\AppData\\Local\\Temp\\tmpk8x5niae', '--quiet', 'ssm-simulators>=0.3.0']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

I try now that pymc is on the machine to pull hddm again via git:

(hddm37) C:\Users\leonab>pip install git+https://github.com/AlexanderFengler/ssms@main Collecting git+https://github.com/AlexanderFengler/ssms@main Cloning https://github.com/AlexanderFengler/ssms (to revision main) to c:\users\leonab\appdata\local\temp\pip-req-build-u2mn2u6c Running command git clone --filter=blob:none --quiet https://github.com/AlexanderFengler/ssms 'C:\Users\leonab\AppData\Local\Temp\pip-req-build-u2mn2u6c' Resolved https://github.com/AlexanderFengler/ssms to commit 25eb0993efa769055f100bfc10fab648a0d28b26 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting scikit-learn>=0.24.0 Using cached scikit_learn-1.0.2-cp37-cp37m-win_amd64.whl (7.1 MB) Requirement already satisfied: cython>=0.29.23 in c:\users\leonab\miniconda3\envs\hddm37\lib\site-packages (from ssm-simulators==0.3.0) (0.29.34) Requirement already satisfied: psutil>=5.0.0 in c:\users\leonab\miniconda3\envs\hddm37\lib\site-packages (from ssm-simulators==0.3.0) (5.9.0) Requirement already satisfied: numpy>=1.17.0 in c:\users\leonab\miniconda3\envs\hddm37\lib\site-packages (from ssm-simulators==0.3.0) (1.21.6) Collecting pandas>=1.0.0 Using cached pandas-1.3.5-cp37-cp37m-win_amd64.whl (10.0 MB) Collecting scipy>=1.6.3 Using cached scipy-1.7.3-cp37-cp37m-win_amd64.whl (34.1 MB) Requirement already satisfied: pytz>=2017.3 in c:\users\leonab\miniconda3\envs\hddm37\lib\site-packages (from pandas>=1.0.0->ssm-simulators==0.3.0) (2022.7) Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\leonab\miniconda3\envs\hddm37\lib\site-packages (from pandas>=1.0.0->ssm-simulators==0.3.0) (2.8.2) Collecting joblib>=0.11 Using cached joblib-1.2.0-py3-none-any.whl (297 kB) Collecting threadpoolctl>=2.0.0 Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Requirement already satisfied: six>=1.5 in c:\users\leonab\miniconda3\envs\hddm37\lib\site-packages (from python-dateutil>=2.7.3->pandas>=1.0.0->ssm-simulators==0.3.0) (1.16.0) Building wheels for collected packages: ssm-simulators Building wheel for ssm-simulators (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for ssm-simulators (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [25 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\ssms copying ssms__init.py -> build\lib.win-amd64-cpython-37\ssms creating build\lib.win-amd64-cpython-37\ssms\basic_simulators copying ssms\basic_simulators\boundary_functions.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators copying ssms\basic_simulators\drift_functions.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators copying ssms\basic_simulators\simulator.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators copying ssms\basic_simulators__init__.py -> build\lib.win-amd64-cpython-37\ssms\basic_simulators creating build\lib.win-amd64-cpython-37\ssms\config copying ssms\config\config.py -> build\lib.win-amd64-cpython-37\ssms\config copying ssms\config__init__.py -> build\lib.win-amd64-cpython-37\ssms\config creating build\lib.win-amd64-cpython-37\ssms\dataset_generators copying ssms\dataset_generators\lan_mlp.py -> build\lib.win-amd64-cpython-37\ssms\dataset_generators copying ssms\dataset_generators\snpe.py -> build\lib.win-amd64-cpython-37\ssms\dataset_generators copying ssms\dataset_generators\init.py -> build\lib.win-amd64-cpython-37\ssms\dataset_generators creating build\lib.win-amd64-cpython-37\ssms\support_utils copying ssms\support_utils\kde_class.py -> build\lib.win-amd64-cpython-37\ssms\support_utils copying ssms\support_utils\init__.py -> build\lib.win-amd64-cpython-37\ssms\support_utils running build_ext building 'cssm' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for ssm-simulators Failed to build ssm-simulators ERROR: Could not build wheels for ssm-simulators, which is required to install pyproject.toml-based projects

I tried the same on a python 3.5 environment but it also doesn’t work. Please help

`

rghnn commented 1 year ago

I am experiencing the same issue. any solution?

moxtoby commented 1 year ago

Following this thread with interest - did you manage to get hddm installed successfully?

hcp4715 commented 10 months ago

Hi, all

We've created a docker image for HDDM to make HDDM works. Here it is: https://hub.docker.com/r/hcp4715/hddm. Please let us know if you have any questions when using the docker images.