xmlyqing00 / cholmod-scikit-sparse-windows Goto Github PK
View Code? Open in Web Editor NEWSet up cholmod and scikit-sparse python package on Windows.
License: GNU General Public License v3.0
Set up cholmod and scikit-sparse python package on Windows.
License: GNU General Public License v3.0
Hello
I can follow all the installation steps apparently succesfully but when I try to use the library in python it is not found:
the import from sksparse.cholmod import cholesky
returns
ModuleNotFoundError: No module named 'sksparse.cholmod'
I am using Windows 10 x64 with Anaconda 3 and Visual Studio 2017.
I can use the compiled packages in Visual Studio C++ projects so the issue is probably in the python installation script.
(base) C:\Users\david\Downloads\Cholmod-Scikit-Sparse-Windows-master\scikit-sparse-0.4.3>python setup.py build running build running build_py UPDATING build\lib.win-amd64-3.7\sksparse/_version.py set build\lib.win-amd64-3.7\sksparse/_version.py to '0.4.3' running build_ext skipping 'sksparse\cholmod.c' Cython extension (up-to-date)
Install:
(base) C:\Users\david\Downloads\Cholmod-Scikit-Sparse-Windows-master\scikit-sparse-0.4.3>python setup.py install
running install
running bdist_egg
running egg_info
writing scikit_sparse.egg-info\PKG-INFO
writing dependency_links to scikit_sparse.egg-info\dependency_links.txt
writing requirements to scikit_sparse.egg-info\requires.txt
writing top-level names to scikit_sparse.egg-info\top_level.txt
reading manifest file 'scikit_sparse.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
no previously-included directories found matching 'doc\_build'
warning: manifest_maker: MANIFEST.in, line 5: 'prune' expects a single <dir_pattern>
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'scikit_sparse.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
UPDATING build\lib.win-amd64-3.7\sksparse/_version.py
set build\lib.win-amd64-3.7\sksparse/_version.py to '0.4.3'
running build_ext
skipping 'sksparse\cholmod.c' Cython extension (up-to-date)
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\sksparse
copying build\lib.win-amd64-3.7\sksparse\cholmod.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg\sksparse
copying build\lib.win-amd64-3.7\sksparse\provamatrix4.py -> build\bdist.win-amd64\egg\sksparse
copying build\lib.win-amd64-3.7\sksparse\test_cholmod.py -> build\bdist.win-amd64\egg\sksparse
creating build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\illc1033.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\illc1033_rhs1.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\illc1850.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\illc1850_rhs1.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\well1033.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\well1033_rhs1.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\well1850.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\test_data\well1850_rhs1.mtx.gz -> build\bdist.win-amd64\egg\sksparse\test_data
copying build\lib.win-amd64-3.7\sksparse\_version.py -> build\bdist.win-amd64\egg\sksparse
copying build\lib.win-amd64-3.7\sksparse\__init__.py -> build\bdist.win-amd64\egg\sksparse
byte-compiling build\bdist.win-amd64\egg\sksparse\provamatrix4.py to provamatrix4.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\sksparse\test_cholmod.py to test_cholmod.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\sksparse\_version.py to _version.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\sksparse\__init__.py to __init__.cpython-37.pyc
creating stub loader for sksparse\cholmod.cp37-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\sksparse\cholmod.py to cholmod.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying scikit_sparse.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying scikit_sparse.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying scikit_sparse.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying scikit_sparse.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying scikit_sparse.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_safe flag not set; analyzing archive contents...
sksparse.__pycache__.cholmod.cpython-37: module references __file__
creating 'dist\scikit_sparse-0.4.3-py3.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing scikit_sparse-0.4.3-py3.7-win-amd64.egg
removing 'c:\users\david\anaconda3\lib\site-packages\scikit_sparse-0.4.3-py3.7-win-amd64.egg' (and everything under it)
creating c:\users\david\anaconda3\lib\site-packages\scikit_sparse-0.4.3-py3.7-win-amd64.egg
Extracting scikit_sparse-0.4.3-py3.7-win-amd64.egg to c:\users\david\anaconda3\lib\site-packages
scikit-sparse 0.4.3 is already the active version in easy-install.pth
Installed c:\users\david\anaconda3\lib\site-packages\scikit_sparse-0.4.3-py3.7-win-amd64.egg
Processing dependencies for scikit-sparse==0.4.3
Searching for scipy==1.2.1
Best match: scipy 1.2.1
Adding scipy 1.2.1 to easy-install.pth file
Using c:\users\david\anaconda3\lib\site-packages
Searching for numpy==1.16.2
Best match: numpy 1.16.2
Adding numpy 1.16.2 to easy-install.pth file
Installing f2py-script.py script to C:\Users\david\Anaconda3\Scripts
Installing f2py.exe script to C:\Users\david\Anaconda3\Scripts
Using c:\users\david\anaconda3\lib\site-packages
Finished processing dependencies for scikit-sparse==0.4.3```
I followed all the instructions, when I execute cholesky decomposition function works, but then it return me an error when I try to solve the system. In particular, I can do the first line, but not the last line of the following code:
factor = cholesky(A)
x = factor(b)
the error that I received is:
SystemError: <sksparse.cholmod.Factor object at 0x0000010810BC93A0> returned a result with an error set
Also, I debugged test_cholmod.py and it give me the same errors but I haven't idea of how solve thise issue.
Thank you so much,
Umberto.
Hello,
Could you pleaes give me some suggestions about GPU acceleration when using cholesky?
Thank you for your time!
Hi
The command python setup.py build
returns error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe failed with exit status 1181
I'm using Windows 10 x64 with Anaconda 3 and Visual Studio 2017.
Build:
PS C:\Users\User\Downloads\scikit-sparse-0.4.4> python setup.py build running build running build_py UPDATING build\lib.win-amd64-3.7\sksparse/_version.py set build\lib.win-amd64-3.7\sksparse/_version.py to '0.4.4' running build_ext skipping 'sksparse\cholmod.c' Cython extension (up-to-date) building 'sksparse.cholmod' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python37\lib\site-packages\numpy\core\include -IC:\Python37/include -I/usr/include/suitesparse -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsksparse\cholmod.c /Fobuild\temp.win-amd64-3.7\Release\sksparse\cholmod.obj cholmod.c c:\python37\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Python37\libs /LIBPATH:C:\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cholmod.lib /EXPORT:PyInit_cholmod build\temp.win-amd64-3.7\Release\sksparse\cholmod.obj /OUT:build\lib.win-amd64-3.7\sksparse\cholmod.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\sksparse\cholmod.cp37-win_amd64.lib LINK : fatal error LNK1181: impossibile aprire il file di input 'cholmod.lib' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
Just recording the issues I'm having installing this on Windows 11. Attempting to install into a virtual environment.
System setup:
Windows 11
Visual Studio 17 2022 (+ build tools)
CMake 3.28.0
Python 3.11.5
Attempting with no Anaconda
Cholmod appears to have built fine with VS 17 2022. There were no failures or problems when set to release mode and building.
For building with venv:
Powershell required the following in order to enter my venv with python as I do not want numpy installed locally: Set-ExecutionPolicy Unrestricted -Scope Process
Followed by activating my venv with {DIR}\venv\Scripts\activate.ps1
All of the following is done in the powershell.
(venv) PS {DIR}\CSC_ROOT\Cholmod-Scikit-Sparse-Windows-master\scikit-sparse-0.4.4> python setup.py build
running build
running build_py
UPDATING build\lib.win-amd64-cpython-311\sksparse/_version.py
set build\lib.win-amd64-cpython-311\sksparse/_version.py to '0.4.4'
running build_ext
Compiling sksparse/cholmod.pyx because it changed.
[1/1] Cythonizing sksparse/cholmod.pyx
performance hint: sksparse\cholmod.pyx:379:5: Exception check on '_error_handler' will always require the GIL to be acquired.
Possible solutions:
1. Declare the function as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
2. Use an 'int' return type on the function to allow an error code to be returned.
Error compiling Cython file:
------------------------------------------------------------
...
cholmod_c_start(&self._common)
assert (_use_long == 0 and self._common.itype == CHOLMOD_INT) \
or (_use_long == 1 and self._common.itype == CHOLMOD_LONG)
self._common.print = 0
self._common.error_handler = (
<void (*)(int, const char *, int, const char *)>_error_handler)
^
------------------------------------------------------------
sksparse\cholmod.pyx:435:12: Cannot assign type 'void (*)(int, const char *, int, const char *) except *' to 'void (*)(int, const char *, int, const char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (int, const char *, int, const char *) except *'.
Traceback (most recent call last):
File "{DIR}\CSC_ROOT\Cholmod-Scikit-Sparse-Windows-master\scikit-sparse-0.4.4\setup.py", line 39, in <module>
setup(install_requires = ['numpy', 'scipy'],
File "{DIR}\venv\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
File "{DIR}\venv\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "{DIR}\venv\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "{DIR}\venv\Lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
self.build_extensions()
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 466, in build_extensions
self._build_extensions_serial()
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 492, in _build_extensions_serial
self.build_extension(ext)
File "{DIR}\venv\Lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "{DIR}\venv\Lib\site-packages\Cython\Distutils\build_ext.py", line 130, in build_extension
new_ext = cythonize(
^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "{DIR}\venv\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sksparse/cholmod.pyx
pip install "cython<3"
as some people with a similar issue found their cython version was the problem. This resulted in the following error under the dropdown: some text
(venv) PS {DIR}\CSC_ROOT\Cholmod-Scikit-Sparse-Windows-master\scikit-sparse-0.4.4> python setup.py build
{DIR}\venv\Lib\site-packages\setuptools\__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING: The wheel package is not available.
running build
running build_py
UPDATING build\lib.win-amd64-cpython-311\sksparse/_version.py
set build\lib.win-amd64-cpython-311\sksparse/_version.py to '0.4.4'
running build_ext
cythoning sksparse/cholmod.pyx to sksparse\cholmod.c
Traceback (most recent call last):
File "{DIR}\CSC_ROOT\Cholmod-Scikit-Sparse-Windows-master\scikit-sparse-0.4.4\setup.py", line 39, in <module>
setup(install_requires = ['numpy', 'scipy'],
File "{DIR}\venv\Lib\site-packages\setuptools\__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "{DIR}\venv\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "{DIR}\venv\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "{DIR}\venv\Lib\site-packages\setuptools\command\build_ext.py", line 88, in run
_build_ext.run(self)
File "{DIR}\venv\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "{DIR}\venv\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "{DIR}\venv\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 193, in build_extensions
ext.sources = self.cython_sources(ext.sources, ext)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 346, in cython_sources
result = cython_compile(source, options=options,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\Main.py", line 786, in compile
return compile_single(source, options, full_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\Main.py", line 731, in compile_single
return run_pipeline(source, options, full_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\Main.py", line 479, in run_pipeline
context = options.create_context()
^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\Main.py", line 600, in create_context
return Context(self.include_path, self.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\Main.py", line 80, in __init__
from . import Builtin, CythonScope
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\TreeFragment.py", line 21, in <module>
from . import Parsing
File "Cython\\Compiler\\Parsing.py", line 31, in init Cython.Compiler.Parsing
File "{DIR}\venv\Lib\site-packages\Cython\Compiler\ModuleNode.py", line 3220, in <module>
capsule_utility_code = UtilityCode.load("Capsule")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Cython\\Compiler\\Code.py", line 351, in Cython.Compiler.Code.UtilityCodeBase.load
TypeError: load() takes exactly 2 positional arguments (1 given)
Coming back to this later as I have to leave for the day.
Collecting scikit-sparse==0.4.4
Using cached scikit-sparse-0.4.4.tar.gz (385 kB)
Requirement already satisfied: numpy in d:\application\anaconda\lib\site-packages (from scikit-sparse==0.4.4) (1.17.4)
Requirement already satisfied: scipy in d:\application\anaconda\lib\site-packages (from scikit-sparse==0.4.4) (1.4.1)
Building wheels for collected packages: scikit-sparse
Building wheel for scikit-sparse (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\application\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\T
emp\\pip-install-alf6p0oh\\scikit-sparse\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-alf6p0oh\\scikit-spar
se\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, _
_file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\pip-wheel-bohc3p8n'
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-alf6p0oh\scikit-sparse\
Complete output (31 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\sksparse
copying sksparse\test_cholmod.py -> build\lib.win-amd64-3.7\sksparse
copying sksparse\_version.py -> build\lib.win-amd64-3.7\sksparse
copying sksparse\__init__.py -> build\lib.win-amd64-3.7\sksparse
creating build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1033.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1033_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1850.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1850_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1033.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1033_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1850.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1850_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
UPDATING build\lib.win-amd64-3.7\sksparse/_version.py
set build\lib.win-amd64-3.7\sksparse/_version.py to '0.4.4'
running build_ext
skipping 'sksparse\cholmod.c' Cython extension (up-to-date)
building 'sksparse.cholmod' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\sksparse
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\application\anaconda\lib\site-pac
kages\numpy\core\include -ID:\application\anaconda/include -I/usr/include/suitesparse -ID:\application\anaconda\include -ID:\application\anaconda\includ
e "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program
Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\w
inrt" /Tcsksparse\cholmod.c /Fobuild\temp.win-amd64-3.7\Release\sksparse\cholmod.obj
cholmod.c
d:\application\anaconda\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it
with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\administrator\appdata\local\temp\pip-install-alf6p0oh\scikit-sparse\sksparse\cholmod_backward_compatible.h(1): fatal error C1083: Cannot open
include file: 'cholmod.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for scikit-sparse
Running setup.py clean for scikit-sparse
Failed to build scikit-sparse
Installing collected packages: scikit-sparse
Running setup.py install for scikit-sparse ... error
ERROR: Command errored out with exit status 1:
command: 'D:\application\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\
\Temp\\pip-install-alf6p0oh\\scikit-sparse\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-alf6p0oh\\scikit-sp
arse\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
__file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-_sskybiz\install-record.txt' --single-version-extern
ally-managed --compile --install-headers 'D:\application\anaconda\Include\scikit-sparse'
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-alf6p0oh\scikit-sparse\
Complete output (31 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\sksparse
copying sksparse\test_cholmod.py -> build\lib.win-amd64-3.7\sksparse
copying sksparse\_version.py -> build\lib.win-amd64-3.7\sksparse
copying sksparse\__init__.py -> build\lib.win-amd64-3.7\sksparse
creating build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1033.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1033_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1850.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\illc1850_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1033.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1033_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1850.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
copying sksparse\test_data\well1850_rhs1.mtx.gz -> build\lib.win-amd64-3.7\sksparse\test_data
UPDATING build\lib.win-amd64-3.7\sksparse/_version.py
set build\lib.win-amd64-3.7\sksparse/_version.py to '0.4.4'
running build_ext
skipping 'sksparse\cholmod.c' Cython extension (up-to-date)
building 'sksparse.cholmod' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\sksparse
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\application\anaconda\lib\site-p
ackages\numpy\core\include -ID:\application\anaconda/include -I/usr/include/suitesparse -ID:\application\anaconda\include -ID:\application\anaconda\incl
ude "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Progra
m Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include
\winrt" /Tcsksparse\cholmod.c /Fobuild\temp.win-amd64-3.7\Release\sksparse\cholmod.obj
cholmod.c
d:\application\anaconda\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable i
t with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\administrator\appdata\local\temp\pip-install-alf6p0oh\scikit-sparse\sksparse\cholmod_backward_compatible.h(1): fatal error C1083: Cannot op
en include file: 'cholmod.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\application\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\User
s\\Administrator\\AppData\\Local\\Temp\\pip-install-alf6p0oh\\scikit-sparse\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp
\\pip-install-alf6p0oh\\scikit-sparse\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"
'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-_sskybiz\install-re
cord.txt' --single-version-externally-managed --compile --install-headers 'D:\application\anaconda\Include\scikit-sparse' Check the logs for full comman
d output.
when I use pip install then I got the error, can you help me ? Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.