错误如下所示:
Installing collected packages: osqp
Running setup.py install for osqp ... error
...
...
...
copying module/codegen/sources/src/qdldl_interface.c -> build/lib.linux-x86_64-3.4/osqp/codegen/sources/src
copying module/codegen/sources/src/scaling.c -> build/lib.linux-x86_64-3.4/osqp/codegen/sources/src
copying module/codegen/sources/src/util.c -> build/lib.linux-x86_64-3.4/osqp/codegen/sources/src
running build_ext
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
CMake 3.2 or higher is required. You are running version 2.8.12.2
-- Configuring incomplete, errors occurred!
Error: could find generator in Cache
error: [Errno 2] No such file or directory: 'osqp_sources/build/out/libosqp.a'
----------------------------------------
Command "/home/zhongzi/code/.virtualenvs/ml3.4/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-tzdyeutc/osqp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-f76ehs0l/install-record.txt --single-version-externally-managed --compile --install-headers /home/zhongzi/code/.virtualenvs/ml3.4/include/site/python3.4/osqp" failed with error code 1 in /tmp/pip-install-tzdyeutc/osqp/
系统为14.04.1-Ubuntu。任何帮助将不胜感激!
答案 0 :(得分:0)
在此处添加答案,以便可以解决问题。例如,在Ubuntu中更新“ cmake”包:
sudo apt-get install cmake
由错误输出指示:“需要CMake 3.2或更高版本。您正在运行版本2.8.12.2”。