pythonoptimizers / pysparse Goto Github PK
View Code? Open in Web Editor NEWA Sparse Matrix Library for Python
License: Other
A Sparse Matrix Library for Python
License: Other
I try to install pysparse on ubuntu 16.04.1, numpy version 1.14.5,.
When "sudo pip install pysparse" I get this error:
pysparse/sparse/src/spmatrixmodule.c:4:22: fatal error: spmatrix.h: No such file or directory
compilation terminated.
error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DLENFUNC_OK=1 -DNO_ATLAS_INFO=1 -DHAVE_CBLAS -Ipysparse/sparse/src -I/tmp/pip-install-zB_RaU/pysparse/pysparse/include -I/usr/local/include -I/usr/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/tmp/pip-install-zB_RaU/pysparse/pysparse/include -I/usr/include/python2.7 -c pysparse/sparse/src/spmatrixmodule.c -o build/temp.linux-x86_64-2.7/pysparse/sparse/src/spmatrixmodule.o -MMD -MF build/temp.linux-x86_64-2.7/pysparse/sparse/src/spmatrixmodule.o.d" failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-zB_RaU/pysparse/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-pKOp5o/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-zB_RaU/pysparse/
When I try to build it with sudo python setup.py install
or sudo python setup.py config_fc --fcompiler=gfortran build
i get this:
error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE_VENDOR_BLAS=1 -DNO_ATLAS_INFO=1 -DHAVE_CBLAS -Ipysparse/direct/src -Ipysparse/direct/superlu/include -I/usr/local/include -I/usr/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/home/jayohh/topy/pysparse/pysparse/include -I/usr/include/python2.7 -c pysparse/direct/superlu/src/util.c -o build/temp.linux-x86_64-2.7/pysparse/direct/superlu/src/util.o -MMD -MF build/temp.linux-x86_64-2.7/pysparse/direct/superlu/src/util.o.d" failed with exit status 1
Hope you can help, I need it for a script called ToPy and i am not very in python.
Hello,
I'm trying to install pysparse on Windows 10, but it seems to be hitting an issue with the Visual C++ for CPython:
error: Command "C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild\amd64 /LIBPATH:C:\Python27\PC\VS9.0\amd64 /EXPORT:initjdsym build\temp.win-amd64-2.7\Release\pysparse\eigen\src\jdsymmodule.obj /OUT:build\lib.win-amd64-2.7\pysparse\eigen\jdsym.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\pysparse\eigen\src\jdsym.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\pysparse\eigen\src\jdsym.pyd.manifest" failed with exit status 1120
I really have no idea what is causing this. I'm quite new to this, and would appreciate any suggestions or advice.
Thanks,
Ash
Build fails when the linked needs some special options, ex. special support libs.
compile options: '-c'
cc: /tmp/tmpXfeHsA/source.c
/tmp/tmpXfeHsA/source.c:4:13: warning: implicit declaration of function 'zungqr_' is invalid in C99 [-Wimplicit-function-declaration]
zungqr_();
^
1 warning generated.
cc /tmp/tmpXfeHsA/tmp/tmpXfeHsA/source.o -L/usr/local/lib -lopenblas -o /tmp/tmpXfeHsA/a.out
//usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__multf3@GCC_4.6.0'
//usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__subtf3@GCC_4.6.0'
: this is because the linker options weren't used.
FreeBSD 10.3
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 26
print 'setuptools module not found.'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('setuptools module not found.')?
*** Error code 1
python-2,7 is EOLed and is going to be removed.
The FreeBSD port is going to be removed as well.
@syarra
@counterclocker
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.