Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in windows 10 when pip install loris #13

Open
hjc19951212 opened this issue Jun 13, 2024 · 0 comments
Open

error in windows 10 when pip install loris #13

hjc19951212 opened this issue Jun 13, 2024 · 0 comments

Comments

@hjc19951212
Copy link

pip install loris
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting loris
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/77/b1/9161807338c220a11a9780c1c0c6afd021061dc263f86f7417971342d17d/loris-0.5.3.tar.gz (8.9 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: aedat in c:\users\18558\appdata\local\programs\python\python38\lib\site-packages (from loris) (2.1.0)
Requirement already satisfied: numpy in c:\users\18558\appdata\local\programs\python\python38\lib\site-packages (from loris) (1.24.4)
Requirement already satisfied: tqdm in c:\users\18558\appdata\local\programs\python\python38\lib\site-packages (from loris) (4.65.0)
Requirement already satisfied: colorama in c:\users\18558\appdata\local\programs\python\python38\lib\site-packages (from tqdm->loris) (0.4.4)
Building wheels for collected packages: loris
Building wheel for loris (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\loris
copying loris\CSV.py -> build\lib.win-amd64-cpython-38\loris
copying loris\ReadFile.py -> build\lib.win-amd64-cpython-38\loris
copying loris\utils.py -> build\lib.win-amd64-cpython-38\loris
copying loris\WriteEventsToFile.py -> build\lib.win-amd64-cpython-38\loris
copying loris_init_.py -> build\lib.win-amd64-cpython-38\loris
running build_ext
building 'loris_extension' extension
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\Users
creating build\temp.win-amd64-cpython-38\Release\Users\18558
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\18558\appdata\local\programs\python\python38\include -Ic:\users\18558\appdata\local\programs\python\python38\Include -Ic:\users\18558\appdata\local\programs\python\python38\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" /EHsc /TpC:\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.cpp /Fobuild\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.obj
loris_extension.cpp
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\18558\appdata\local\programs\python\python38\libs /LIBPATH:c:\users\18558\appdata\local\programs\python\python38 /LIBPATH:c:\users\18558\appdata\local\programs\python\python38\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_loris_extension build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.obj /OUT:build\lib.win-amd64-cpython-38\loris_extension.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.cp38-win_amd64.lib
loris_extension.obj : warning LNK4197: export 'PyInit_loris_extension' specified multiple times; using first specification
LINK : fatal error LNK1104: cannot open file 'build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.cp38-win_amd64.lib'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit code 1104
[end of output]

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

× Running setup.py install for loris did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
running install
c:\users\18558\appdata\local\programs\python\python38\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-38
creating build\lib.win-amd64-cpython-38\loris
copying loris\CSV.py -> build\lib.win-amd64-cpython-38\loris
copying loris\ReadFile.py -> build\lib.win-amd64-cpython-38\loris
copying loris\utils.py -> build\lib.win-amd64-cpython-38\loris
copying loris\WriteEventsToFile.py -> build\lib.win-amd64-cpython-38\loris
copying loris_init_.py -> build\lib.win-amd64-cpython-38\loris
running build_ext
building 'loris_extension' extension
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\Users
creating build\temp.win-amd64-cpython-38\Release\Users\18558
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab
creating build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\18558\appdata\local\programs\python\python38\include -Ic:\users\18558\appdata\local\programs\python\python38\Include -Ic:\users\18558\appdata\local\programs\python\python38\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" /EHsc /TpC:\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.cpp /Fobuild\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.obj
loris_extension.cpp
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\18558\appdata\local\programs\python\python38\libs /LIBPATH:c:\users\18558\appdata\local\programs\python\python38 /LIBPATH:c:\users\18558\appdata\local\programs\python\python38\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_loris_extension build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.obj /OUT:build\lib.win-amd64-cpython-38\loris_extension.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.cp38-win_amd64.lib
loris_extension.obj : warning LNK4197: export 'PyInit_loris_extension' specified multiple times; using first specification
LINK : fatal error LNK1104: cannot open file 'build\temp.win-amd64-cpython-38\Release\Users\18558\AppData\Local\Temp\pip-install-axinyaqo\loris_88ce624450c94067a853769790a109ab\loris\loris_extension.cp38-win_amd64.lib'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit code 1104
[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.
╰─> loris

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.4; however, version 24.0 is available.
You should consider upgrading via the 'c:\users\18558\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant