【问题标题】:Qt installation python BUG - linux (ubuntu)Qt安装python BUG - linux (ubuntu)
【发布时间】:2019-07-02 11:18:19
【问题描述】:

我尝试安装 Qt5.9.3 并收到此错误:

sh: 1: python: not found
Project ERROR: Building QtQml requires Python.

然后,我检查我的 python 版本。

/usr/lib/python2.7/site.py
/usr/lib/python2.7/site.pyc
/usr/lib/python3.6/site.py

我尝试安装 Qt5.9.8,它给出了同样的错误。

【问题讨论】:

  • 试试:sudo apt-get install python python3。你是如何安装 Qt 的?,如果没有这些信息,几乎不可能提供帮助
  • python3已经是最新版本(3.6.7-1~18.04)。
  • 我有一个 makeQt 文件 (github.com/OpenFOAM/ThirdParty-2.1.x/blob/master/makeQt)。其实我安装了OpenFoam,现在我需要安装Qt来安装Paraview...

标签: qt ubuntu


【解决方案1】:

由于某种原因,您的环境变量 PATH 似乎不包含 python 的路径。
尝试添加它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-17
    • 2015-08-19
    • 2022-07-07
    • 1970-01-01
    • 1970-01-01
    • 2018-01-12
    • 1970-01-01
    相关资源
    最近更新 更多