Skip to content

Trouble with SSM installation #165

@nightshade2303

Description

@nightshade2303

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.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions