Skip to content

issue with spams installation #85

@andebag

Description

@andebag

Hi, I am new to coding / using python and I am having some issues installing SPAMS on my system. I have python 2.7.16, on windows. I was able to successfully install all the other packages, but I keep getting errors when I try to pip install spams. When I try to do:

pip install --index-url https://test.pypi.org/simple/ spams

I get:

Looking in indexes: https://test.pypi.org/simple/
Collecting spams
Using cached https://test-files.pythonhosted.org/packages/4c/9f/710c1d07594ee434e5dd33632a07b62a1b5c25ad84e96c319dd498243fd7/spams-2.6.1.11.tar.gz
Requirement already satisfied: numpy in c:\python27\lib\site-packages (from spams) (1.16.4)
Requirement already satisfied: scipy in c:\python27\lib\site-packages (from spams) (1.2.1)
Requirement already satisfied: six in c:\python27\lib\site-packages (from spams) (1.12.0)
Installing collected packages: spams
Running setup.py install for spams ... error
ERROR: Complete output from command 'c:\python27\python.exe' -u -c 'import setuptools, tokenize;file='"'"'c:\users\andeba1\appdata\local\temp\pip-install-jok3um\spams\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\andeba1\appdata\local\temp\pip-record-7slvfp\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying spams.py -> build\lib.win-amd64-2.7
copying spams_wrap.py -> build\lib.win-amd64-2.7
copying myscipy_rand.py -> build\lib.win-amd64-2.7
running build_ext
building '_spams_wrap' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
C:\Users\Ande Bagdasarian\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -Ispams\linalg -Ispams\prox -Ispams\decomp -Ispams\dictLearn -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\include -Ic:\python27\include -Ic:\python27\include -Ic:\python27\PC /Tpspams_wrap.cpp /Fobuild\temp.win-amd64-2.7\Release\spams_wrap.obj -DNDEBUG -DUSE_BLAS_LIB -std=c++11 -fPIC -fopenmp -Wunused-variable -m64
cl : Command line error D8021 : invalid numeric argument '/Wunused-variable'
error: Command "C:\Users\Ande Bagdasarian\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -Ispams\linalg -Ispams\prox -Ispams\decomp -Ispams\dictLearn -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\include -Ic:\python27\include -Ic:\python27\include -Ic:\python27\PC /Tpspams_wrap.cpp /Fobuild\temp.win-amd64-2.7\Release\spams_wrap.obj -DNDEBUG -DUSE_BLAS_LIB -std=c++11 -fPIC -fopenmp -Wunused-variable -m64" failed with exit status 2
----------------------------------------
ERROR: Command "'c:\python27\python.exe' -u -c 'import setuptools, tokenize;file='"'"'c:\users\andeba1\appdata\local\temp\pip-install-jok3um\spams\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\andeba1\appdata\local\temp\pip-record-7slvfp\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in c:\users\andeba~1\appdata\local\temp\pip-install-jok3um\spams\

Does this mean I have a problem with my C++ program? I installed it properly but I'm really not sure what the issue is... any ideas to point me in the right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions