我正在嘗試安裝dlib
Python庫。在某些系統上(macOS,股票Ubuntu 14.04)pip install dlib
工作正常,但在我們的CircleCI環境中的Ubuntu 14.x中,它失敗並出現以下錯誤。在創建共享對象時,無法使用針對'_Py_NotImplementedStruct'的重定位R_X86_64_32S;用-fPIC重新編譯
Linking CXX shared library dlib.so
/usr/bin/ld: /opt/circleci/python/2.7.11/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against '_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
error: cmake build failed!
什麼可能是錯的?