[英]How to fix a pip install error of osqp for python3.4?
該錯誤如下所示:
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。 任何幫助將不勝感激!
在此處添加答案,以便可以解決問題。 例如,在Ubuntu中更新“ cmake”包:
sudo apt-get install cmake
錯誤輸出表明:“需要CMake 3.2或更高版本。您正在運行版本2.8.12.2”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.