Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with SSM installation #165

Open
nightshade2303 opened this issue Dec 2, 2023 · 7 comments
Open

Trouble with SSM installation #165

nightshade2303 opened this issue Dec 2, 2023 · 7 comments

Comments

@nightshade2303
Copy link

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

@jalajamadhusudhanan
Copy link

jalajamadhusudhanan commented Jan 1, 2024

I encountered the same error while trying to install. how to solve it?

@qionghe9
Copy link

I encountered the same error while trying to install. how to solve it?

I also encountered the same problem. Have you solved it?

@qionghe9
Copy link

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?

@wanglei666666666
Copy link

I encountered the same error.

@qionghe9
Copy link

qionghe9 commented Mar 21, 2024 via email

@wanglei666666666
Copy link

wanglei666666666 commented Apr 1, 2024

@slinderman
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants