如何修复 ModuleNotFoundError: No module named 'conans'
问题:
运行 conanfile.py 或其他 Python 脚本时,你看到类似这样的错误消息
error.txt
Traceback (most recent call last):
File "/home/myuser/myproject/conanfile.py", line 1, in <module>
from conans import ConanFile, CMake
ModuleNotFoundError: No module named 'conans'解决方案
使用推荐方法之一安装 conan,例如通过 pip 推荐安装
install_conan.sh
pip install -U conanIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow