-
Notifications
You must be signed in to change notification settings - Fork 39
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
RE2 Windows install #52
Comments
I run ' pip install re2' on cmd commond. Failed building wheel for re2
Command "f:\anaconda\python.exe -u -c "import setuptools, tokenize;file='C:\Users\qiqiq\AppData\Local\Temp\pip-install-ttpcaxkz\re2\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\qiqiq\AppData\Local\Temp\pip-record-xcj433tp\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\qiqiq\AppData\Local\Temp\pip-install-ttpcaxkz\re2 |
My operating system is windows |
@luoqishuai did you install the re2 library into your VSC++ environment? |
i have this problem aswell |
I have the same problem |
I'm a bit confused on how to install this for Windows 10. I do pip install pre2 and I get the following error. I am running python 3.7 and moved what I thought was the right files from the google install into the included path, but I'm not sure if I am just missing something here.
Collecting re2
Using cached https://files.pythonhosted.org/packages/1d/93/17606ff043e3c27cfd50561b906142de1a8debeb958a3ab4226ca66d195e/re2-0.2.22.tar.gz
Installing collected packages: re2
Running setup.py install for re2 ... error
Complete output from command C:\Users\Owner\AppData\Local\Programs\Python\Python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Owner\AppData\Local\Temp\pip-install-hjrm6n2i\re2\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Owner\AppData\Local\Temp\pip-record-j5_hq7nk\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 're2' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Owner\AppData\Local\Programs\Python\Python37\include -IC:\Users\Owner\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tpsrc/re2.cpp /Fobuild\temp.win-amd64-3.7\Release\src/re2.obj
re2.cpp
src/re2.cpp(2037): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(2565): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
src/re2.cpp(3453): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
src/re2.cpp(3462): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(5334): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
src/re2.cpp(5968): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
src/re2.cpp(6126): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(6708): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data
src/re2.cpp(6721): warning C4267: 'argument': conversion from 'size_t' to 'long', possible loss of data
src/re2.cpp(6947): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(7064): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(8380): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
src/re2.cpp(8433): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(8562): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/re2.cpp(14764): error C2039: 'exc_type': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14765): error C2039: 'exc_value': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14766): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14767): error C2039: 'exc_type': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14768): error C2039: 'exc_value': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14769): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14790): error C2039: 'exc_type': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14791): error C2039: 'exc_value': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14792): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14801): error C2039: 'exc_type': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14802): error C2039: 'exc_value': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14803): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14804): error C2039: 'exc_type': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14805): error C2039: 'exc_value': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
src/re2.cpp(14806): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\owner\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe' failed with exit status 2
Command "C:\Users\Owner\AppData\Local\Programs\Python\Python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Owner\AppData\Local\Temp\pip-install-hjrm6n2i\re2\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Owner\AppData\Local\Temp\pip-record-j5_hq7nk\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Owner\AppData\Local\Temp\pip-install-hjrm6n2i\re2\
The text was updated successfully, but these errors were encountered: