lferry007 / LargeVis

Apache License 2.0
708 stars 168 forks source link

Installation failed on Windows 10 (Python 2.7 and 3.6) #31

Open mrleo2710 opened 7 years ago

mrleo2710 commented 7 years ago

Hi there. I'm really new to computer science, I'm a humanities student and I'm preparing part of my thesis in computational linguistics. I would need LargeVis to visualize my data (vectors created from doc2vec algorigithm)

I have Windows, I have installed boost 1.58.0, the Python compiler and Visual Studio. I cannot install the module and for sure I'm doing some noob errors. The boost path is set `correclty and I'm using the command prompt of VS 2017. Am I missing something? Do I need to do some preliminary steps? Maybe I'm missing something that is presupposed in the documentation. If someone could help me I would be grateful.

Here is my code

c:\Users\mrleo\Downloads\LargeVis-master\Windows>python setup.py install running install running build running build_ext building 'LargeVis' extension C:\Users\mrleo\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG "-IC:\Program Files\boost_1_58_0" -IC:\Python27\include -IC:\Python27\PC /TpLargeVis.cpp /Fobuild\temp.win-amd64-2.7\Release\LargeVis.obj /Ox LargeVis.cpp C:\Python27\include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc C:\Program Files\boost_1_58_0\boost/random/detail/polynomial.hpp(114) : warning C4996: 'std::fill_n': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Python27\include\xutility(3283) : see declaration of 'std::fill_n' C:\Program Files\boost_1_58_0\boost/random/detail/polynomial.hpp(256) : warning C4996: 'std::fill_n': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Python27\include\xutility(3283) : see declaration of 'std::fill_n' C:\Program Files\boost_1_58_0\boost/random/detail/polynomial.hpp(264) : warning C4996: 'std::fill_n': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Python27\include\xutility(3283) : see declaration of 'std::fill_n' c:\users\mrleo\downloads\largevis-master\windows\annoy\stdint.h(241) : warning C4005: 'INTMAX_C' : macro redefinition C:\Program Files\boost_1_58_0\boost/cstdint.hpp(460) : see previous definition of 'INTMAX_C' c:\users\mrleo\downloads\largevis-master\windows\annoy\stdint.h(242) : warning C4005: 'UINTMAX_C' : macro redefinition C:\Program Files\boost_1_58_0\boost/cstdint.hpp(461) : see previous definition of 'UINTMAX_C' LargeVis.cpp(43) : warning C4244: '=' : conversion from 'double' to '__int64', possible loss of data LargeVis.cpp(63) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(237) : see declaration of 'fopen' LargeVis.cpp(70) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(256) : see declaration of 'fscanf' LargeVis.cpp(71) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(76) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(256) : see declaration of 'fscanf' LargeVis.cpp(102) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(237) : see declaration of 'fopen' LargeVis.cpp(109) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(256) : see declaration of 'fscanf' LargeVis.cpp(115) : warning C4244: 'argument' : conversion from '__int64' to 'const int', possible loss of data LargeVis.cpp(116) : warning C4244: 'argument' : conversion from '__int64' to 'const int', possible loss of data LargeVis.cpp(129) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(133) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(134) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(142) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(237) : see declaration of 'fopen' LargeVis.cpp(146) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(175) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(210) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(211) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(213) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(214) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(215) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(221) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(222) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(266) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(273) : warning C4244: 'argument' : conversion from '__int64' to 'size_t', possible loss of data LargeVis.cpp(273) : warning C4244: 'argument' : conversion from '__int64' to 'size_t', possible loss of data LargeVis.cpp(273) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(275) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(277) : warning C4244: 'argument' : conversion from '__int64' to '__w64 int', possible loss of data LargeVis.cpp(287) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(289) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(290) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(292) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(294) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(308) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(314) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(319) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(320) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(326) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(328) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(330) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(351) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(352) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(375) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(377) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(378) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(393) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(395) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(395) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(397) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(399) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(411) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(413) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(414) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(416) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(418) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(427) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(436) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(445) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(450) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(457) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(459) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(460) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(468) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(471) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(471) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(472) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(472) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(472) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(472) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(486) : warning C4244: '=' : conversion from 'double' to '__int64', possible loss of data LargeVis.cpp(496) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(512) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Python27\include\stdio.h(237) : see declaration of 'fopen' LargeVis.cpp(515) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(515) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(515) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(524) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(528) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(530) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(532) : error C2666: 'pow' : 6 overloads have similar conversions C:\Python27\include\math.h(575): could be 'long double pow(long double,int)' C:\Python27\include\math.h(573): or 'long double pow(long double,long double)' C:\Python27\include\math.h(527): or 'float pow(float,int)' C:\Python27\include\math.h(525): or 'float pow(float,float)' C:\Python27\include\math.h(489): or 'double pow(double,int)' C:\Python27\include\math.h(123): or 'double pow(double,double)' while trying to match the argument list '(real, double)' LargeVis.cpp(536) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(540) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data LargeVis.cpp(554) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(555) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(564) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(565) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(569) : warning C4244: 'argument' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(569) : warning C4244: 'argument' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(570) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(571) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(579) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(584) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(608) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(609) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(612) : warning C4244: 'initializing' : conversion from '__int64' to 'unsigned int', possible loss of data LargeVis.cpp(628) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(635) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data LargeVis.cpp(636) : warning C4244: '=' : conversion from 'double' to 'real', possible loss of data error: command '"C:\Users\mrleo\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin\cl.exe"' failed with exit status 2