在构建文件中安装cmake时 命令行提示错误,如附件中的图像1所示。经过研究,似乎该错误是由于python(依赖项或文件路径或任何其他问题)引起的。如下所示
在构建文件中安装cmake和conan时,这是输出命令 https://mysite.azurewebsites.net
cmake -DGEN_CONAN_BUILD_INFO=ON -DCMAKE_BUILD_TYPE=Debug -DINSTALL_DEFAULT_CONF=ON -DINSTALL_EMPTY_SCHEMA_DB=ON ../
在重新安装或清除python时,这是输出
-- The CXX compiler identification is GNU 8.2.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Traceback (most recent call last):
File "/home/A/.local/bin/conan", line 6, in <module>
from conans.conan import run
ImportError: No module named conans.conan
CMake Error at CMakeLists.txt:7 (message):
Failed to conan install
-- Configuring incomplete, errors occurred!
See also "/home/A/Desktop/project/build/CMakeFiles/CMakeOutput.log"