You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(myenv) C:\Users\Ganesh\Documents\GitHub\phonetic-similarity-vectors>pip install --user annoy
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Building wheels for collected packages: annoy
Building wheel for annoy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ganesh\anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"'; file='"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Ganesh\AppData\Local\Temp\pip-wheel-qzvotk17'
cwd: C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy
Complete output (139 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\annoy
copying annoy_init_.py -> build\lib.win-amd64-3.8\annoy
running build_ext
building 'annoy.annoylib' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IC:\Users\Ganesh\anaconda3\envs\myenv\include -IC:\Users\Ganesh\anaconda3\envs\myenv\include -c src/annoymodule.cc -o build\temp.win-amd64-3.8\Release\src\annoymodule.o -D_CRT_SECURE_NO_WARNINGS -DANNOYLIB_MULTITHREADED_BUILD
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/thread:35:0,
from src/annoylib.h:62,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/shared_mutex:35:0,
from src/annoylib.h:64,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++14_warning.h:32:2: error: #error This file requires compiler and library support for the forthcoming ISO C++ 2014 standard. This support is currently experimental, and must be enabled with the -std=c++1y or -std=gnu++1y compiler options. #error This file requires compiler and library support for the forthcoming
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h:1415:8: error: 'shared_timed_mutex' in namespace 'std' does not name a type
std::shared_timed_mutex nodes_mutex;
^
src/annoylib.h:1416:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex n_nodes_mutex;
^
src/annoylib.h:1417:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex roots_mutex;
^
src/annoylib.h: In static member function 'static void AnnoyIndexMultiThreadedBuildPolicy::build(AnnoyIndex<S, T, D, Random, AnnoyIndexMultiThreadedBuildPolicy>, int, int)':
src/annoylib.h:1426:41: error: 'std::thread' has not been declared
n_threads = std::max(1, (int)std::thread::hardware_concurrency());
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
src/annoylib.h:1429:23: error: template argument 1 is invalid
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:23: error: template argument 2 is invalid
src/annoylib.h:1434:25: error: invalid types 'int[int]' for array subscript
threads[thread_idx] = std::thread(
^
src/annoylib.h:1434:29: error: 'thread' is not a member of 'std'
threads[thread_idx] = std::thread(
^
src/annoylib.h:1439:9: error: 'ref' is not a member of 'std'
std::ref(threaded_build_policy)
^
src/annoylib.h:1443:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto& thread : threads) {
^
src/annoylib.h:1443:25: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for (auto& thread : threads) {
^
src/annoylib.h:1444:14: error: request for member 'join' in 'thread', which is of non-class type 'int'
thread.join();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_n_nodes()':
src/annoylib.h:1449:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_n_nodes()':
src/annoylib.h:1452:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_nodes()':
src/annoylib.h:1456:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_nodes()':
src/annoylib.h:1459:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_shared_nodes()':
src/annoylib.h:1463:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_shared_nodes()':
src/annoylib.h:1466:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_roots()':
src/annoylib.h:1470:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_roots()':
src/annoylib.h:1473:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.unlock();
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char, bool, char**) [with S = int; T = long long unsigned int; Distance = Hamming; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:96:110: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = DotProduct; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Manhattan; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Euclidean; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Angular; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
error: command 'C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe' failed with exit status 1
ERROR: Failed building wheel for annoy
Running setup.py clean for annoy
Failed to build annoy
Installing collected packages: annoy
Running setup.py install for annoy ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ganesh\anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"'; file='"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\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\Ganesh\AppData\Local\Temp\pip-record-qi7s11ob\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Ganesh\AppData\Roaming\Python\Python38\Include\annoy'
cwd: C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy
Complete output (139 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\annoy
copying annoy_init_.py -> build\lib.win-amd64-3.8\annoy
running build_ext
building 'annoy.annoylib' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IC:\Users\Ganesh\anaconda3\envs\myenv\include -IC:\Users\Ganesh\anaconda3\envs\myenv\include -c src/annoymodule.cc -o build\temp.win-amd64-3.8\Release\src\annoymodule.o -D_CRT_SECURE_NO_WARNINGS -DANNOYLIB_MULTITHREADED_BUILD
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/thread:35:0,
from src/annoylib.h:62,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/shared_mutex:35:0,
from src/annoylib.h:64,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++14_warning.h:32:2: error: #error This file requires compiler and library support for the forthcoming ISO C++ 2014 standard. This support is currently experimental, and must be enabled with the -std=c++1y or -std=gnu++1y compiler options.
#error This file requires compiler and library support for the forthcoming
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h:1415:8: error: 'shared_timed_mutex' in namespace 'std' does not name a type
std::shared_timed_mutex nodes_mutex;
^
src/annoylib.h:1416:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex n_nodes_mutex;
^
src/annoylib.h:1417:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex roots_mutex;
^
src/annoylib.h: In static member function 'static void AnnoyIndexMultiThreadedBuildPolicy::build(AnnoyIndex<S, T, D, Random, AnnoyIndexMultiThreadedBuildPolicy>, int, int)':
src/annoylib.h:1426:41: error: 'std::thread' has not been declared
n_threads = std::max(1, (int)std::thread::hardware_concurrency());
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
src/annoylib.h:1429:23: error: template argument 1 is invalid
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:23: error: template argument 2 is invalid
src/annoylib.h:1434:25: error: invalid types 'int[int]' for array subscript
threads[thread_idx] = std::thread(
^
src/annoylib.h:1434:29: error: 'thread' is not a member of 'std'
threads[thread_idx] = std::thread(
^
src/annoylib.h:1439:9: error: 'ref' is not a member of 'std'
std::ref(threaded_build_policy)
^
src/annoylib.h:1443:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto& thread : threads) {
^
src/annoylib.h:1443:25: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for (auto& thread : threads) {
^
src/annoylib.h:1444:14: error: request for member 'join' in 'thread', which is of non-class type 'int'
thread.join();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_n_nodes()':
src/annoylib.h:1449:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_n_nodes()':
src/annoylib.h:1452:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_nodes()':
src/annoylib.h:1456:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_nodes()':
src/annoylib.h:1459:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_shared_nodes()':
src/annoylib.h:1463:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_shared_nodes()':
src/annoylib.h:1466:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_roots()':
src/annoylib.h:1470:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_roots()':
src/annoylib.h:1473:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.unlock();
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char, bool, char**) [with S = int; T = long long unsigned int; Distance = Hamming; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:96:110: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = DotProduct; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Manhattan; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Euclidean; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Angular; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
error: command 'C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Ganesh\anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"'; file='"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\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\Ganesh\AppData\Local\Temp\pip-record-qi7s11ob\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Ganesh\AppData\Roaming\Python\Python38\Include\annoy' Check the logs for full command output.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
pip install failed
pip install failed on windows 10
Jun 8, 2021
@ganeshramg It looks like anaconda wants to use mingw compilers on Windows... probably you will be better off if you just install Visual Studio Community edition and allow it to use the MSVC compiler from there (as your python install is probably built with it anyways).
(myenv) C:\Users\Ganesh\Documents\GitHub\phonetic-similarity-vectors>pip install --user annoy
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Building wheels for collected packages: annoy
Building wheel for annoy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ganesh\anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"'; file='"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Ganesh\AppData\Local\Temp\pip-wheel-qzvotk17'
cwd: C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy
Complete output (139 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\annoy
copying annoy_init_.py -> build\lib.win-amd64-3.8\annoy
running build_ext
building 'annoy.annoylib' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IC:\Users\Ganesh\anaconda3\envs\myenv\include -IC:\Users\Ganesh\anaconda3\envs\myenv\include -c src/annoymodule.cc -o build\temp.win-amd64-3.8\Release\src\annoymodule.o -D_CRT_SECURE_NO_WARNINGS -DANNOYLIB_MULTITHREADED_BUILD
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/thread:35:0,
from src/annoylib.h:62,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/shared_mutex:35:0,
from src/annoylib.h:64,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++14_warning.h:32:2: error: #error This file requires compiler and library support for the forthcoming ISO C++ 2014 standard. This support is currently experimental, and must be enabled with the -std=c++1y or -std=gnu++1y compiler options. #error This file requires compiler and library support for the forthcoming
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h:1415:8: error: 'shared_timed_mutex' in namespace 'std' does not name a type
std::shared_timed_mutex nodes_mutex;
^
src/annoylib.h:1416:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex n_nodes_mutex;
^
src/annoylib.h:1417:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex roots_mutex;
^
src/annoylib.h: In static member function 'static void AnnoyIndexMultiThreadedBuildPolicy::build(AnnoyIndex<S, T, D, Random, AnnoyIndexMultiThreadedBuildPolicy>, int, int)':
src/annoylib.h:1426:41: error: 'std::thread' has not been declared
n_threads = std::max(1, (int)std::thread::hardware_concurrency());
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
src/annoylib.h:1429:23: error: template argument 1 is invalid
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:23: error: template argument 2 is invalid
src/annoylib.h:1434:25: error: invalid types 'int[int]' for array subscript
threads[thread_idx] = std::thread(
^
src/annoylib.h:1434:29: error: 'thread' is not a member of 'std'
threads[thread_idx] = std::thread(
^
src/annoylib.h:1439:9: error: 'ref' is not a member of 'std'
std::ref(threaded_build_policy)
^
src/annoylib.h:1443:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto& thread : threads) {
^
src/annoylib.h:1443:25: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for (auto& thread : threads) {
^
src/annoylib.h:1444:14: error: request for member 'join' in 'thread', which is of non-class type 'int'
thread.join();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_n_nodes()':
src/annoylib.h:1449:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_n_nodes()':
src/annoylib.h:1452:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_nodes()':
src/annoylib.h:1456:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_nodes()':
src/annoylib.h:1459:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_shared_nodes()':
src/annoylib.h:1463:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_shared_nodes()':
src/annoylib.h:1466:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_roots()':
src/annoylib.h:1470:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_roots()':
src/annoylib.h:1473:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.unlock();
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char, bool, char**) [with S = int; T = long long unsigned int; Distance = Hamming; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:96:110: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = DotProduct; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Manhattan; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Euclidean; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Angular; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
error: command 'C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe' failed with exit status 1
ERROR: Failed building wheel for annoy
Running setup.py clean for annoy
Failed to build annoy
Installing collected packages: annoy
Running setup.py install for annoy ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ganesh\anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"'; file='"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\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\Ganesh\AppData\Local\Temp\pip-record-qi7s11ob\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Ganesh\AppData\Roaming\Python\Python38\Include\annoy'
cwd: C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy
Complete output (139 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\annoy
copying annoy_init_.py -> build\lib.win-amd64-3.8\annoy
running build_ext
building 'annoy.annoylib' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IC:\Users\Ganesh\anaconda3\envs\myenv\include -IC:\Users\Ganesh\anaconda3\envs\myenv\include -c src/annoymodule.cc -o build\temp.win-amd64-3.8\Release\src\annoymodule.o -D_CRT_SECURE_NO_WARNINGS -DANNOYLIB_MULTITHREADED_BUILD
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/thread:35:0,
from src/annoylib.h:62,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/shared_mutex:35:0,
from src/annoylib.h:64,
from src/annoymodule.cc:15:
C:/Users/Ganesh/anaconda3/envs/myenv/Library/mingw-w64/include/c++/5.3.0/bits/c++14_warning.h:32:2: error: #error This file requires compiler and library support for the forthcoming ISO C++ 2014 standard. This support is currently experimental, and must be enabled with the -std=c++1y or -std=gnu++1y compiler options.
#error This file requires compiler and library support for the forthcoming
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h:1415:8: error: 'shared_timed_mutex' in namespace 'std' does not name a type
std::shared_timed_mutex nodes_mutex;
^
src/annoylib.h:1416:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex n_nodes_mutex;
^
src/annoylib.h:1417:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex roots_mutex;
^
src/annoylib.h: In static member function 'static void AnnoyIndexMultiThreadedBuildPolicy::build(AnnoyIndex<S, T, D, Random, AnnoyIndexMultiThreadedBuildPolicy>, int, int)':
src/annoylib.h:1426:41: error: 'std::thread' has not been declared
n_threads = std::max(1, (int)std::thread::hardware_concurrency());
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:12: error: 'thread' is not a member of 'std'
src/annoylib.h:1429:23: error: template argument 1 is invalid
vectorstd::thread threads(n_threads);
^
src/annoylib.h:1429:23: error: template argument 2 is invalid
src/annoylib.h:1434:25: error: invalid types 'int[int]' for array subscript
threads[thread_idx] = std::thread(
^
src/annoylib.h:1434:29: error: 'thread' is not a member of 'std'
threads[thread_idx] = std::thread(
^
src/annoylib.h:1439:9: error: 'ref' is not a member of 'std'
std::ref(threaded_build_policy)
^
src/annoylib.h:1443:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto& thread : threads) {
^
src/annoylib.h:1443:25: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for (auto& thread : threads) {
^
src/annoylib.h:1444:14: error: request for member 'join' in 'thread', which is of non-class type 'int'
thread.join();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_n_nodes()':
src/annoylib.h:1449:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_n_nodes()':
src/annoylib.h:1452:5: error: 'n_nodes_mutex' was not declared in this scope
n_nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_nodes()':
src/annoylib.h:1456:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_nodes()':
src/annoylib.h:1459:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_shared_nodes()':
src/annoylib.h:1463:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.lock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_shared_nodes()':
src/annoylib.h:1466:5: error: 'nodes_mutex' was not declared in this scope
nodes_mutex.unlock_shared();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::lock_roots()':
src/annoylib.h:1470:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.lock();
^
src/annoylib.h: In member function 'void AnnoyIndexMultiThreadedBuildPolicy::unlock_roots()':
src/annoylib.h:1473:5: error: 'roots_mutex' was not declared in this scope
roots_mutex.unlock();
^
In file included from src/annoymodule.cc:15:0:
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char, bool, char**) [with S = int; T = long long unsigned int; Distance = Hamming; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:96:110: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = DotProduct; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Manhattan; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Euclidean; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
src/annoylib.h: In instantiation of 'bool AnnoyIndex<S, T, Distance, Random, ThreadedBuildPolicy>::load(const char*, bool, char**) [with S = int; T = float; Distance = Angular; Random = Kiss64Random; ThreadedBuildPolicy = AnnoyIndexMultiThreadedBuildPolicy]':
src/annoymodule.cc:630:3: required from here
src/annoylib.h:75:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<int, std::allocator >::size_type {aka long long unsigned int}' [-Wformat=]
#define showUpdate(...) { fprintf(stderr, VA_ARGS ); }
^
src/annoylib.h:1101:19: note: in expansion of macro 'showUpdate'
if (_verbose) showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
^
error: command 'C:\Users\Ganesh\anaconda3\envs\myenv\Library\mingw-w64\bin\gcc.exe' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Ganesh\anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\setup.py'"'"'; file='"'"'C:\Users\Ganesh\AppData\Local\Temp\pip-install-hya_5k8v\annoy\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\Ganesh\AppData\Local\Temp\pip-record-qi7s11ob\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Ganesh\AppData\Roaming\Python\Python38\Include\annoy' Check the logs for full command output.
The text was updated successfully, but these errors were encountered: