-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
MS Visual Studio C and C++ build during pip install fails. #3251
Comments
pip install nltk This is the step that fails during the make processing of compiling _regex.c with a cascade of error messages following this initial one. clock_t and a number of other symbols are never defined, and these had cascading consequences during further processing. creating build\temp.win32-cpython-313\Release\regex_3 regex_3_regex.c(518): error C2061: syntax error: identifier ‘clock_t’ AverMedia@AverMedia-PC /cygdrive/c/Program Files/Microsoft Visual Studio A find command was done in the root directory of msvs and ms vc++ etc, to locate instances of the string clock_t and these were the results... ./2022/Preview/VC/Tools/Llvm/ARM64/lib/clang/17/include/__clang_cuda_device_functions.h:// clock_t is on the system. Microsoft was given a bug report, but they insisted that it was not their problem, but that of the python package maintainers, and thereby not a bug within msvc, etc. I hope that some future provisions are made to have the code as portable to other platforms as possible? |
To circumvent the compiler include errors, I watched what packages were installed when using wsl 2 ubuntu 22.04 then issued pip install for each thing needed for the Windows 10 python that I was using as follows... Fri 05/10/2024 13:46:29.17 Fri 05/10/2024 13:47:06.77 Fri 05/10/2024 13:47:34.59 Fri 05/10/2024 13:48:40.24 Fri 05/10/2024 13:49:11.74 Fri 05/10/2024 13:49:44.53 Thus, I have nltk installed without having msvs msvc having to compile and or link the subcomponents that would not successfully install. Yet, the actual c compiling still lacks these include file symbols that also affect a cascade of other compiling issues. |
No description provided.
The text was updated successfully, but these errors were encountered: