Open nightshade2303 opened 7 months ago
I encountered the same error while trying to install. how to solve it?
I encountered the same error while trying to install. how to solve it?
I also encountered the same problem. Have you solved it?
Hi, I am trying to fit some rodent behavior data using the SSM package. However, when I follow the installation instructions in my conda environment, I am unable to install the package and it ends with the error: 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] I did visit the build tools site, but was unsure what or how to install those packages. Can someone help me with this? Thanks!
Full output: `Obtaining file:///C:/Users/dlab/rishika_sim/ssm Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.18 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.25.1) Requirement already satisfied: scipy in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.11.1) Requirement already satisfied: numba in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (0.58.1) Requirement already satisfied: scikit-learn in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.3.2) Requirement already satisfied: tqdm in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (4.66.1) Requirement already satisfied: autograd in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.6.2) Requirement already satisfied: cython in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (3.0.6) Requirement already satisfied: future>=0.15.2 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from autograd->ssm==0.0.1) (0.18.3) Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from numba->ssm==0.0.1) (0.41.1) Requirement already satisfied: joblib>=1.1.1 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from scikit-learn->ssm==0.0.1) (1.3.2) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from scikit-learn->ssm==0.0.1) (3.2.0) Requirement already satisfied: colorama in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from tqdm->ssm==0.0.1) (0.4.6) Installing collected packages: ssm Running setup.py develop for ssm error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [54 lines of output] USE_OPENMP False C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'doc-files' will not be supported in future versions. Please use the underscore name 'doc_files' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) running develop C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\command\develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running egg_info writing ssm.egg-info\PKG-INFO writing dependency_links to ssm.egg-info\dependency_links.txt writing requirements to ssm.egg-info\requires.txt writing top-level names to ssm.egg-info\top_level.txt reading manifest file 'ssm.egg-info\SOURCES.txt' adding license file 'LICENSE' writing manifest file 'ssm.egg-info\SOURCES.txt' running build_ext building 'ssm.cstats' 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: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [54 lines of output] USE_OPENMP False C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options !!
******************************************************************************** Usage of dash-separated 'doc-files' will not be supported in future versions. Please use the underscore name 'doc_files' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) running develop C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\command\develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running egg_info writing ssm.egg-info\PKG-INFO writing dependency_links to ssm.egg-info\dependency_links.txt writing requirements to ssm.egg-info\requires.txt writing top-level names to ssm.egg-info\top_level.txt reading manifest file 'ssm.egg-info\SOURCES.txt' adding license file 'LICENSE' writing manifest file 'ssm.egg-info\SOURCES.txt' running build_ext building 'ssm.cstats' 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.`
I also encountered the same problem. Have you solved it?
I encountered the same error.
I encountered this error on Windows, but it was successfully installed on Linux. Hope this will help you
发自我的iPhone
------------------ Original ------------------ From: Wang Lei @.> Date: Wed,Mar 20,2024 5:57 PM To: lindermanlab/ssm @.> Cc: OBS @.>, Comment @.> Subject: Re: [lindermanlab/ssm] Trouble with SSM installation (Issue #165)
I encountered the same error.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I install Visual Stidio according to https://stackoverflow.com/questions/64261546/how-to-solve-error-microsoft-visual-c-14-0-or-greater-is-required-when-inst, it really works!
Thanks for sharing your solution @wanglei666666666! I haven't tested on Windows personally, but it makes sense that you need to install some extra compiler tools.
An alternative approach would be to install gcc/g++ through conda, but I can't say for sure if that would work.
Hi, I am trying to fit some rodent behavior data using the SSM package. However, when I follow the installation instructions in my conda environment, I am unable to install the package and it ends with the error: 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] I did visit the build tools site, but was unsure what or how to install those packages. Can someone help me with this? Thanks!
Full output: `Obtaining file:///C:/Users/dlab/rishika_sim/ssm Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.18 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.25.1) Requirement already satisfied: scipy in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.11.1) Requirement already satisfied: numba in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (0.58.1) Requirement already satisfied: scikit-learn in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.3.2) Requirement already satisfied: tqdm in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (4.66.1) Requirement already satisfied: autograd in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (1.6.2) Requirement already satisfied: cython in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from ssm==0.0.1) (3.0.6) Requirement already satisfied: future>=0.15.2 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from autograd->ssm==0.0.1) (0.18.3) Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from numba->ssm==0.0.1) (0.41.1) Requirement already satisfied: joblib>=1.1.1 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from scikit-learn->ssm==0.0.1) (1.3.2) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from scikit-learn->ssm==0.0.1) (3.2.0) Requirement already satisfied: colorama in c:\users\dlab\miniforge3\envs\rishika\lib\site-packages (from tqdm->ssm==0.0.1) (0.4.6) Installing collected packages: ssm Running setup.py develop for ssm error: subprocess-exited-with-error
error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [54 lines of output] USE_OPENMP False C:\Users\dlab\miniforge3\envs\rishika\lib\site-packages\setuptools\dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options !!
note: This error originates from a subprocess, and is likely not a problem with pip.`