rankfm icon indicating copy to clipboard operation
rankfm copied to clipboard

installation on windows 11 fails

Open Sandy4321 opened this issue 2 years ago • 2 comments

installation on windows 11 fails sep13 N1\Fastapi multi replica>pip install rankfm Collecting rankfm Using cached rankfm-0.2.5.tar.gz (145 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.15 in c:\my_py_environments\py310_env_flaml_aug1_2023\lib\site-packages (from rankfm) (1.24.3) Requirement already satisfied: pandas>=0.24 in c:\my_py_environments\py310_env_flaml_aug1_2023\lib\site-packages (from rankfm) (1.5.3) Requirement already satisfied: pytz>=2020.1 in c:\my_py_environments\py310_env_flaml_aug1_2023\lib\site-packages (from pandas>=0.24->rankfm) (2023.3) Requirement already satisfied: python-dateutil>=2.8.1 in c:\my_py_environments\py310_env_flaml_aug1_2023\lib\site-packages (from pandas>=0.24->rankfm) (2.8.2) Requirement already satisfied: six>=1.5 in c:\my_py_environments\py310_env_flaml_aug1_2023\lib\site-packages (from python-dateutil>=2.8.1->pandas>=0.24->rankfm) (1.16.0) Building wheels for collected packages: rankfm Building wheel for rankfm (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] building extensions with pre-generated C source... running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\rankfm copying rankfm\evaluation.py -> build\lib.win-amd64-cpython-310\rankfm copying rankfm\rankfm.py -> build\lib.win-amd64-cpython-310\rankfm copying rankfm\utils.py -> build\lib.win-amd64-cpython-310\rankfm copying rankfm_init_.py -> build\lib.win-amd64-cpython-310\rankfm running build_ext building 'rankfm._rankfm' extension creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\rankfm creating build\temp.win-amd64-cpython-310\Release\rankfm\mt19937ar "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\my_py_environments\py310_env_flaml_aug1_2023\include -IC:\Users\cde3\AppData\Local\Programs\Python\Python310\include -IC:\Users\cde3\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcrankfm/_rankfm.c /Fobuild\temp.win-amd64-cpython-310\Release\rankfm/_rankfm.obj -O2 -ffast-math -Wno-unused-function -Wno-uninitialized cl : Command line error D8021 : invalid numeric argument '/Wno-unused-function' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for rankfm Running setup.py clean for rankfm Failed to build rankfm Installing collected packages: rankfm Running setup.py install for rankfm ... error error: subprocess-exited-with-error

× Running setup.py install for rankfm did not run successfully. │ exit code: 1 ╰─> [22 lines of output] building extensions with pre-generated C source... running install C:\my_py_environments\py310_env_flaml_aug1_2023\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\rankfm copying rankfm\evaluation.py -> build\lib.win-amd64-cpython-310\rankfm copying rankfm\rankfm.py -> build\lib.win-amd64-cpython-310\rankfm copying rankfm\utils.py -> build\lib.win-amd64-cpython-310\rankfm copying rankfm_init_.py -> build\lib.win-amd64-cpython-310\rankfm running build_ext building 'rankfm._rankfm' extension creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\rankfm creating build\temp.win-amd64-cpython-310\Release\rankfm\mt19937ar "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\my_py_environments\py310_env_flaml_aug1_2023\include -IC:\Users\cde3\AppData\Local\Programs\Python\Python310\include -IC:\Users\cde3\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcrankfm/_rankfm.c /Fobuild\temp.win-amd64-cpython-310\Release\rankfm/_rankfm.obj -O2 -ffast-math -Wno-unused-function -Wno-uninitialized cl : Command line error D8021 : invalid numeric argument '/Wno-unused-function' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> rankfm

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

[notice] A new release of pip is available: 23.0.1 -> 23.2.1 [notice] To update, run: python.exe -m pip install --upgrade pip

Sandy4321 avatar Oct 04 '23 22:10 Sandy4321

any updates pls

Sandy4321 avatar Oct 06 '23 13:10 Sandy4321

facing the same issue as well, trying to install on windows 11 and it raises an error as follows:

commands tried: I tried using the python -m pip install rankfm and the pip install rankfm --no-binary :all:

Collecting rankfm Using cached rankfm-0.2.5.tar.gz (145 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Requirement already satisfied: numpy>=1.15 in c:\users\shriv\anaconda3\lib\site-packages (from rankfm) (1.20.0) Requirement already satisfied: pandas>=0.24 in c:\users\shriv\anaconda3\lib\site-packages (from rankfm) (1.4.4) Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\shriv\anaconda3\lib\site-packages (from pandas>=0.24->rankfm) (2.8.2) Requirement already satisfied: pytz>=2020.1 in c:\users\shriv\anaconda3\lib\site-packages (from pandas>=0.24->rankfm) (2022.1) Requirement already satisfied: six>=1.5 in c:\users\shriv\anaconda3\lib\site-packages (from python-dateutil>=2.8.1->pandas>=0.24->rankfm) (1.16.0) Building wheels for collected packages: rankfm Building wheel for rankfm (setup.py): started Building wheel for rankfm (setup.py): finished with status 'error' Running setup.py clean for rankfm Failed to build rankfm error: subprocess-exited-with-error

python setup.py bdist_wheel did not run successfully. exit code: 1

[14 lines of output] building extensions with pre-generated C source... running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\rankfm copying rankfm\evaluation.py -> build\lib.win-amd64-cpython-39\rankfm copying rankfm\rankfm.py -> build\lib.win-amd64-cpython-39\rankfm copying rankfm\utils.py -> build\lib.win-amd64-cpython-39\rankfm copying rankfm_init_.py -> build\lib.win-amd64-cpython-39\rankfm running build_ext building 'rankfm._rankfm' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for rankfm ERROR: Could not build wheels for rankfm, which is required to install pyproject.toml-based projects

I would like to know if there is any other way to install rankfm, thanks!

shrivaths16 avatar Nov 17 '23 01:11 shrivaths16