python - tensorflow pip install 中的 pkg-config 错误
问题描述
尝试在 pycharm 的虚拟环境中或通过终端安装 tensorflow 时出现以下错误:
error: pkg-config probably not installed: FileNotFoundError(2, "No such file or directory: 'pkg-config'")
但是 pkg-config 肯定安装在我的系统上。任何帮助表示赞赏。
解决方案
我的错误 - 我认为它需要 python pkgconfig (安装在我的系统上)。
sudo apt-get install pkg-config 修复了错误。
推荐阅读
- python - 是否有一种简单的方法可以读取特定文件夹中包含特定短语?
- javascript - 在 javascript 中,数组显示“按值传递”行为而不是“按引用传递”
- python - 如何确定python整数形式的表达式的值?
- mongodb - 无法使用带参数的构造函数 NO_CONSTRUCTOR 实例化 java.util.List
- jquery - 使用 jquery 抓取网站时出现 TypeError
- mysql - 如何使用两个表和辅助表编写查询?
- aws-secrets-manager - AWS (ResourceNotFoundException) 调用 GetSecretValue 操作时:Secrets Manager 找不到指定的密钥
- python - 如何在子进程命令行中传递字符串路径?
- wildfly-10 - Wildfly 10 缺少/不可用的依赖项
- bash - 通过 JQ 和 BASH/SHELL 获取 JSON 文档的第三个元素