首页 > 解决方案 > tensorflow pip install 中的 pkg-config 错误

问题描述

尝试在 pycharm 的虚拟环境中或通过终端安装 tensorflow 时出现以下错误:

error: pkg-config probably not installed: FileNotFoundError(2, "No such file or directory: 'pkg-config'")

但是 pkg-config 肯定安装在我的系统上。任何帮助表示赞赏。

标签: pythontensorflow

解决方案


我的错误 - 我认为它需要 python pkgconfig (安装在我的系统上)。

sudo apt-get install pkg-config 修复了错误。


推荐阅读