Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Windows installation error #30

Open
akshay-1993 opened this issue Feb 8, 2018 · 3 comments
Open

Windows installation error #30

akshay-1993 opened this issue Feb 8, 2018 · 3 comments

Comments

@akshay-1993
Copy link

akshay-1993 commented Feb 8, 2018

C:\Python27>pip install git+https://github.com/danielfrg/tsne.git
Collecting git+https://github.com/danielfrg/tsne.git
  Cloning https://github.com/danielfrg/tsne.git to c:\users\akshayc\appdata\local\temp\pip-0wq9im-build
Requirement already satisfied: Cython>=0.19.1 in c:\python27\lib\site-packages (from tsne==0.1.7)
Requirement already satisfied: numpy>=1.7.1 in c:\python27\lib\site-packages (from tsne==0.1.7)
Requirement already satisfied: scipy>=0.12.0 in c:\python27\lib\site-packages (from tsne==0.1.7)
Installing collected packages: tsne
  Running setup.py install for tsne ... error
    Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\akshayc\\appdata\\local\\temp\\pip-0wq9im-build\\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\akshayc\appdata\local\temp\pip-_nui6m-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-2.7
    creating build\lib.win32-2.7\tsne
    copying tsne\_version.py -> build\lib.win32-2.7\tsne
    copying tsne\__init__.py -> build\lib.win32-2.7\tsne
    creating build\lib.win32-2.7\tsne\tests
    copying tsne\tests\test_iris.py -> build\lib.win32-2.7\tsne\tests
    copying tsne\tests\test_seed.py -> build\lib.win32-2.7\tsne\tests
    copying tsne\tests\__init__.py -> build\lib.win32-2.7\tsne\tests
    UPDATING build\lib.win32-2.7\tsne/_version.py
    set build\lib.win32-2.7\tsne/_version.py to '0.1.7'
    running build_ext
    building 'bh_sne' extension
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    creating build\temp.win32-2.7\Release\tsne
    creating build\temp.win32-2.7\Release\tsne\bh_sne_src
    C:\Users\AkshayC\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\python27\lib\site-packages\numpy\core\include -I/usr/local/include -Itsne/bh_sne_src/ -Ic:\python27\include -Ic:\python27\PC /Tptsne/bh_sne.cpp /Fobuild\temp.win32-2.7\Release\tsne/bh_sne.obj -msse2 -O3 -fPIC -w
    cl : Command line warning D9025 : overriding '/W3' with '/w'
    cl : Command line warning D9002 : ignoring unknown option '-msse2'
    cl : Command line warning D9002 : ignoring unknown option '-O3'
    cl : Command line warning D9002 : ignoring unknown option '-fPIC'
    bh_sne.cpp
    c:\python27\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
    C:\Users\AkshayC\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
    C:\Users\AkshayC\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\python27\lib\site-packages\numpy\core\include -I/usr/local/include -Itsne/bh_sne_src/ -Ic:\python27\include -Ic:\python27\PC /Tptsne/bh_sne_src/quadtree.cpp /Fobuild\temp.win32-2.7\Release\tsne/bh_sne_src/quadtree.obj -msse2 -O3 -fPIC -w
    cl : Command line warning D9025 : overriding '/W3' with '/w'
    cl : Command line warning D9002 : ignoring unknown option '-msse2'
    cl : Command line warning D9002 : ignoring unknown option '-O3'
    cl : Command line warning D9002 : ignoring unknown option '-fPIC'
    quadtree.cpp
    **c:\users\akshayc\appdata\local\temp\pip-0wq9im-build\tsne\bh_sne_src\quadtree.h(13) : error C2871: 'std' : a namespace with this name does not exist
    c:\users\akshayc\appdata\local\temp\pip-0wq9im-build\tsne\bh_sne_src\quadtree.h(17) : error C2375: 'abs' : redefinition; different linkage
            C:\Users\AkshayC\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\math.h(487) : see declaration of 'abs'**
    error: command 'C:\\Users\\AkshayC\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\akshayc\\appdata\\local\\temp\\pip-0wq9im-build\\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\akshayc\appdata\local\temp\pip-_nui6m-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\akshayc\appdata\local\temp\pip-0wq9im-build\
@akshay-1993
Copy link
Author

akshay-1993 commented Feb 8, 2018

Please help asap need tsne for further use. @danielfrg

@kesaroid
Copy link

Hi, I am facing the same issue. I see this was opened in 2018 and won't be solving this issue anytime soon

@danielfrg
Copy link
Owner

Not the best way to ask for help on an OSS project :)

I am not longer using this library and never used it on windows, it has probably never worked on Windows.

I am still accepting PRs and making releases to help other people who still use the lib.
If you want to help support windows PRs are very welcome.

@danielfrg danielfrg changed the title installation error windows Windows installation error May 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants