我正在尝试安装boost,但是我得到了这个错误
错误: boost/1.74.0:无法加载配方。在'/home/pi/.conan/data/boost/1.74.0///export/conanfile.py':上加载conanfile时出错,无法在/home/pi/.conan/data/boost/1.74.0///export/conanfile.py "/home/pi/.conan/data/boost/1.74.0///export/conanfile.py",“/home/pi/.conan/data/boost/1.74.0///export/conanfile.py”,第510行(**self.conan_data“sources”,destination=self._source_subfolder,strip_root=True)中加载conanfile )^ SyntaxError:无效语法
这是我的conanfile.py
from conans import ConanFile, CMake
class ConanPackage(ConanFile):
name = 'network-monitor'
version = "0.1.0"
generators = 'cmake_find_package'
requires = [
('boost/1.74.0')
]
default_options = (
'boost:shared=False'
),这是运行此命令后的完整输出。
conan install .. --profile ../conanprofile.toml配置:设置arch=armv7 arch_build=armv7 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=8 os=Linux os_build=Linux options env
错误: boost/1.74.0:无法加载配方。在'/home/pi/.conan/data/boost/1.74.0///export/conanfile.py':上加载conanfile时出错,无法在/home/pi/.conan/data/boost/1.74.0///export/conanfile.py "/home/pi/.conan/data/boost/1.74.0///export/conanfile.py",“/home/pi/.conan/data/boost/1.74.0///export/conanfile.py”,第510行(**self.conan_data“tools.get”)中加载conanfile,^ SyntaxError:无效语法
发布于 2021-06-01 11:48:32
默认的python版本是2.7,我已经将默认python版本设置为3.7,并重新安装了所有工具,conan正确地安装了它。
这是关于如何在raspberry pi https://raspberry-valley.azurewebsites.net/Python-Default-Version/上设置python默认版本的教程。
https://stackoverflow.com/questions/67760421
复制相似问题