Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (120 points)

When I was trying to install pysurvival. It suddenly threw me an error telling.

running install

running bdist_egg

running egg_info

writing pysurvival.egg-info\PKG-INFO

writing dependency_links to pysurvival.egg-info\dependency_links.txt

writing requirements to pysurvival.egg-info\requires.txt

writing top-level names to pysurvival.egg-info\top_level.txt

reading manifest file 'pysurvival.egg-info\SOURCES.txt'

reading manifest template 'MANIFEST.in'

warning: no files found matching '*.txt' under directory 'docs'

warning: no previously-included files matching '*.py[co]' found anywhere in distribution

writing manifest file 'pysurvival.egg-info\SOURCES.txt'

installing library code to build\bdist.win-amd64\egg

running install_lib

running build_py

running build_ext

building 'pysurvival.utils._functions' extension

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-ID:\program Files\Anaconda3\envs\r-env\include" "-ID:\program Files\Anaconda3\envs\r-env\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppysurvival/cpp_extensions/_functions.cpp /Fobuild\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions/_functions.obj -std=c++11 -O3

cl : Command line warning D9002 : ignoring unknown option '-std=c++11'

cl : Command line warning D9002 : ignoring unknown option '-O3'

_functions.cpp

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-ID:\program Files\Anaconda3\envs\r-env\include" "-ID:\program Files\Anaconda3\envs\r-env\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppysurvival/cpp_extensions/functions.cpp /Fobuild\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions/functions.obj -std=c++11 -O3

cl : Command line warning D9002 : ignoring unknown option '-std=c++11'

cl : Command line warning D9002 : ignoring unknown option '-O3'

functions.cpp

pysurvival/cpp_extensions/functions.cpp(113): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data

pysurvival/cpp_extensions/functions.cpp(208): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:D:\program Files\Anaconda3\envs\r-env\libs" "/LIBPATH:D:\program Files\Anaconda3\envs\r-env\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" /EXPORT:PyInit__functions build\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions/_functions.obj build\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions/functions.obj /OUT:build\lib.win-amd64-3.7\pysurvival\utils\_functions.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions\_functions.cp37-win_amd64.lib

   Creating library build\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions\_functions.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions\_functions.cp37-win_amd64.exp

Generating code

Finished generating code

building 'pysurvival.utils._metrics' extension

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-ID:\program Files\Anaconda3\envs\r-env\include" "-ID:\program Files\Anaconda3\envs\r-env\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppysurvival/cpp_extensions/_metrics.cpp /Fobuild\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions/_metrics.obj -std=c++11 -O3

cl : Command line warning D9002 : ignoring unknown option '-std=c++11'

cl : Command line warning D9002 : ignoring unknown option '-O3'

_metrics.cpp

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-ID:\program Files\Anaconda3\envs\r-env\include" "-ID:\program Files\Anaconda3\envs\r-env\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppysurvival/cpp_extensions/non_parametric.cpp /Fobuild\temp.win-amd64-3.7\Release\pysurvival/cpp_extensions/non_parametric.obj -std=c++11 -O3

cl : Command line warning D9002 : ignoring unknown option '-std=c++11'

cl : Command line warning D9002 : ignoring unknown option '-O3'

non_parametric.cpp

pysurvival/cpp_extensions/non_parametric.cpp(152): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence

pysurvival/cpp_extensions/non_parametric.cpp(284): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

pysurvival/cpp_extensions/non_parametric.cpp(303): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data

pysurvival/cpp_extensions/non_parametric.cpp(308): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data

pysurvival/cpp_extensions/non_parametric.cpp(317): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data

pysurvival/cpp_extensions/non_parametric.cpp(318): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence

pysurvival/cpp_extensions/non_parametric.cpp(349): error C2065: 'M_PI': undeclared identifier

pysurvival/cpp_extensions/non_parametric.cpp(364): error C2065: 'M_PI': undeclared identifier

pysurvival/cpp_extensions/non_parametric.cpp(364): error C2065: 'M_PI': undeclared identifier

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Please log in or register to answer this question.

Browse Categories

...