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

Cannot install deeptime. I have Python 3.10 (Windows 10) and trying to install using Visual Studio 2022 #248

Closed
4 tasks done
panandreou opened this issue Aug 18, 2022 · 12 comments

Comments

@panandreou
Copy link

panandreou commented Aug 18, 2022

Describe the bug
A clear and concise description of what the bug is.

Here's a quick checklist in what to include:

  • Include a detailed description of the bug or suggestion
  • pip list or conda list of the environment you are using (please attach a txt file to the issue).
  • deeptime and operating system versions
  • Minimal example if possible, a Python script, zipped input data (if not too large)
@panandreou
Copy link
Author

Cannot install deeptime.
----- Installing 'deeptime==0.4.2' -----
Collecting deeptime==0.4.2
Using cached deeptime-0.4.2.tar.gz (390 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: threadpoolctl in c:\users\pandreou\appdata\local\programs\python\python310\lib\site-packages (from deeptime==0.4.2) (3.1.0)
Requirement already satisfied: scipy in c:\users\pandreou\appdata\local\programs\python\python310\lib\site-packages (from deeptime==0.4.2) (1.9.0)
Requirement already satisfied: numpy in c:\users\pandreou\appdata\local\programs\python\python310\lib\site-packages (from deeptime==0.4.2) (1.23.2)
Requirement already satisfied: scikit-learn in c:\users\pandreou\appdata\local\programs\python\python310\lib\site-packages (from deeptime==0.4.2) (1.1.2)
Requirement already satisfied: joblib>=1.0.0 in c:\users\pandreou\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->deeptime==0.4.2) (1.1.0)
Building wheels for collected packages: deeptime
Building wheel for deeptime (pyproject.toml): started
Building wheel for deeptime (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

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

[295 lines of output]
C:\Users\pandreou\AppData\Local\Temp\pip-build-env-nhmdyqlg\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:196: UserWarning: install_requires overwritten in pyproject.toml (dependencies)
warnings.warn(msg)


-- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator






--
Not searching for unused variables given on the command line.
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator - failure


-- Trying "Visual Studio 17 2022 x64 v143" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 17 2022

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Visual Studio 17 2022 x64 v143" generator - failure


-- Trying "Ninja (Visual Studio 16 2019 x64 v142)" generator






--
Not searching for unused variables given on the command line.
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Ninja (Visual Studio 16 2019 x64 v142)" generator - failure


-- Trying "Visual Studio 16 2019 x64 v142" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 16 2019

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Visual Studio 16 2019 x64 v142" generator - failure


-- Trying "Ninja (Visual Studio 15 2017 x64 v141)" generator






--
Not searching for unused variables given on the command line.
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Ninja (Visual Studio 15 2017 x64 v141)" generator - failure


-- Trying "Visual Studio 15 2017 x64 v141" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 15 2017

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Visual Studio 15 2017 x64 v141" generator - failure


-- Trying "NMake Makefiles (Visual Studio 17 2022 x64 v143)" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running

Failed to build deeptime
'nmake' '-?'

failed with:

 The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "NMake Makefiles (Visual Studio 17 2022 x64 v143)" generator - failure


-- Trying "NMake Makefiles (Visual Studio 16 2019 x64 v142)" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "NMake Makefiles (Visual Studio 16 2019 x64 v142)" generator - failure


-- Trying "NMake Makefiles (Visual Studio 15 2017 x64 v141)" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/Users/pandreou/AppData/Local/Temp/pip-install-dpfr52i_/deeptime_34db8d17a86042198c72f43c5b8e0ad5/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "NMake Makefiles (Visual Studio 15 2017 x64 v141)" generator - failure


scikit-build could not get a working generator for your system. Aborting build.

Building windows wheels for Python 3.10 requires Microsoft Visual Studio 2022.
Get it with "Visual Studio 2017":

https://visualstudio.microsoft.com/vs/

Or with "Visual Studio 2019":

https://visualstudio.microsoft.com/vs/

Or with "Visual Studio 2022":

https://visualstudio.microsoft.com/vs/

[end of output]

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

@clonker
Copy link
Member

clonker commented Aug 19, 2022

Hi, if you try to install deeptime with pip, it will locally compile the code. This only works, if you have visual studio installed (as indicated by the error message). Alternatively, you can use the precompiled binaries shipped by anaconda with conda install -c conda-forge deeptime.

@panandreou
Copy link
Author

panandreou commented Aug 19, 2022 via email

@clonker
Copy link
Member

clonker commented Aug 24, 2022

Hey, could you post the entire error message? and/or invoke with pip install deeptime -v? you can also attach it here as text file (drag and drop).

@panandreou
Copy link
Author

panandreou commented Aug 24, 2022 via email

@panandreou
Copy link
Author

panandreou commented Aug 24, 2022 via email

@clonker
Copy link
Member

clonker commented Aug 25, 2022

Hey thanks for this information! It still looks like Visual Studio is not set up correctly. In any case, I went ahead and compiled the trunk version of deeptime on windows for you, it is attached to this post. You can install it by first unzipping and then with pip install deeptime-0.4.2+14.g153d9f6-cp310-cp310-win_amd64.whl. Let me know if that worked 🙂

deeptime-0.4.2+14.g153d9f6-cp310-cp310-win_amd64.zip

@panandreou
Copy link
Author

panandreou commented Aug 25, 2022 via email

@panandreou
Copy link
Author

panandreou commented Aug 25, 2022 via email

@clonker
Copy link
Member

clonker commented Aug 25, 2022

Great, you're welcome!

@clonker clonker closed this as completed Aug 25, 2022
@panandreou
Copy link
Author

panandreou commented Oct 11, 2022 via email

@clonker
Copy link
Member

clonker commented Oct 11, 2022

Hi there, this looks like your whole environment is somehow broken. I recommend removing anaconda and installing miniforge. Then simply conda install deeptime. 🙂

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

2 participants