ubuntu16.04 安装 Eric6「建议收藏」

从安装qt,到安装qtpy,到安装Eric6,这是一个很痛苦的过程。总是会有一大段的错误,然后在网上各种搜索,然后去改,然后还是有新的错误,又去找答案,一直重复,我都快崩溃了。最后,终于,找到这一篇博客:http://blog.csdn.net/suxiang198/article/details/52042526。这篇博客解决了大部分坑,不过到后面部分还是出现了问题,安装不上去。最后,终于在E

大家好,又见面了,我是你们的朋友全栈君。

从安装qt,到安装qtpy,到安装Eric6,这是一个很痛苦的过程。总是会有一大段的错误,然后在网上各种搜索,然后去改,然后还是有新的错误,又去找答案,一直重复,我都快崩溃了。最后,终于,找到这一篇博客:http://blog.csdn.net/suxiang198/article/details/52042526 。这篇博客解决了大部分坑,不过到后面部分还是出现了问题,安装不上去。最后,终于在 Eric6官网 ,找到了终极答案:
原文:

  • “nstallation using PyQt5 wheels
    Installing eric6 and its pre-requisites is easy using the PyQt5 Python wheels. In order to have access to the suite of Qt tools and documentation it is recommended to install the Qt development environment because these tools are not part of the PyQt5 wheels.
    Download the Qt online installer from the Qt download site.
    Install Qt by executing the installer.
    Install the eric6 pre-requisites (PyQt, sip and QScintilla) by entering this command in a shell / command window:
    pip install qscintilla
    or
    pip3 install qscintilla
    This will install QScintilla and all dependencies, which are PyQt5 and sip.
    Install eric6 and configure the path to the Qt tools on the Qt page of the configuration dialog.
    Once the eric6 IDE is started the Qt documentation may be loaded into the eric web browser via the Settings ➡ Mange Qt Help Documents menu entry. Note that the documentation (Python/Qt/PyQt) is available in QtHelp format as of November 2016 as documentation plug-ins. In order to use this feature, eric 16.11 or newer needs to be installed.”

  • 翻译过来就是:
    PyQt5车轮安装
    安装eric6及其先决条件很容易使用PyQt5 Python车轮。为了访问Qt工具和文档套件,建议安装Qt开发环境,因为这些工具不是PyQt5轮的一部分。
    从Qt下载网站下载Qt在线安装程序。
    通过执行安装程序来安装Qt。
    通过在shell /命令窗口中输入此命令来安装eric6先决条件(PyQt,sip和QScintilla):
    pip install qscintilla
    或者
    pip3 install qscintilla
    将安装QScintilla和所有依赖关系,即PyQt5和sip。
    安装eric6并在配置对话框的Qt页面上配置Qt工具的路径。
    一旦启动了eric6 IDE,Qt文档可能会通过Settings ➡ Mange Qt Help Documents 菜单项加载到eric Web浏览器中。请注意,截至2016年11月,文档(Python / Qt / PyQt)以QtHelp格式提供,作为文档插件。为了使用此功能,需要安装eric 16.11或更高版本。

思就是说,安装Eric6的步骤是:

1.安装Qt

2.安装eric6的条件(PyQt,sip和QScintilla)

3.安装eric6并在配置对话框的Qt页面上配置Qt工具的路径

(前提是已经安装好python3.5 )

具体步骤如下:
– 安装OpenGL的库:

sudo apt-get install mesa-common-dev  
sudo apt-get install libglu1-mesa-dev -y 

-安装python模块

sudo apt-get install python3-dev

-安装QT
从官网下载,https://www.qt.io/developers/

-配置qmake环境变量,假如
我的Qt5.7.0安装在/home/ethan下,那么,在/home/ethan/Qt5.7.0/5.7/gcc_64/bin/下有qmake。
安装完成后用下面的命令配置一下PATH,在当前用户主目录下的.bashrc (or .zshrc)文件中加入:

export QTDIR=/home/ethan/Qt5.7.0/5.7/gcc_64/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${QTDIR}/lib
export PATH=${QTDIR}/bin:${PATH}

-安装PyQt,sip和QScintilla:

pip3 install qscintilla
或者
pip install qscintilla

-安装 Eric6
官网下载:https://eric-ide.python-projects.org/eric-download.html
解压安装:

tar -zxvf eric6-6.1.7.tar.gz
cd eric6-6.1.7  
sudo python3 install.py

Eric6j这就安装好了。过程中,也遇到错误,当执行

$: pip3.5 install QScintilla

时,发现错误:
PermissionError: [Errno 13] 权限不够: '/usr/local/lib/python3.5/dist-packages/sip.so
真相是我在/usr/local/lib/python3.5/dist-packages/目录下根本就没有找到sip.so,不过我通过文件搜索,在/usr/lib/python3/dist-packages/目录下找到了这个sip.so,于是,我就做了一个软链接:
sudo ln -s /usr/lib/python3/dist-packages/sip.so /usr/local/lib/python3.5/dist-packages/sip.so
然后,在执行:sudo pip3 install QScintilla ,终于就生效里了

在启动Eric6时,不要用下面的代码来启动,会报错:

sudo eric6

要使用下面的代码来启动Eric6:

eric6
  • 然后就是打开eric6的各种配置。
    eric6安装结束。

感谢‘suxiang198’的博客

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/126589.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • url转换_图片在线转换url免费

    url转换_图片在线转换url免费//转换URL地址exchangeUrl(url){if(typeofurl'string'){returnurl.replace('?',&#

    2022年8月4日
    9
  • Unable to process Jar entry [module-info.class] from Jar的问题解决

    Unable to process Jar entry [module-info.class] from Jar的问题解决UnabletoprocessJarentry[module-info.class]fromJar的问题解决背景解决办法背景在使用Eclipse进行SpringBoot应用开发时,如果项目启动是RunAs->RunOnServer方式运行就会报类似于UnabletoprocessJarentry[module-info.class]fromJar的错误…

    2022年9月28日
    3
  • dropdownlist控件的使用方法_redis通知机制

    dropdownlist控件的使用方法_redis通知机制假设:数据源控件GrdiView,无刷新UpdatePannel,友情提示UpdateProgress,分页下拉框DropDownList一般情况下:Gridview的分页有linkbutton或者button,这样要是想让UpdateProgress提示,很简单,先让GridView隐藏,然后给它加个OnClientClick就搞定!在DropDownList的oncha

    2022年9月11日
    3
  • 配置JAVA的环境变量「建议收藏」

    配置JAVA的环境变量「建议收藏」配置JAVA的环境变量为什么配置path?希望在命令行使用javac.exe等工具时,任意目录下都可以找到这个工具所在的目录。例如:我们在C:\Users\Irene目录下使用java命令,结果如下:我们在JDK的安装目录的bin目录下使用java命令,结果如下:我们不可能每次使用java.exe,javac.exe等工具的时候都进入到JDK的安装目录下,太麻烦了。我们希望在任意目录下都可以使用JDK的bin目录的开发工具,因此我们需要告诉操作系统去哪里找这些开发工具,这就需要配置path环境

    2022年5月4日
    59
  • 网管员常用工具(二)「建议收藏」

    网管员常用工具(二)「建议收藏」EVERESTeverest中文版是一款系统硬件检测工具。everest中文版可以对上千种主板和硬件进行检测,可以有效地检测出用户电脑硬件的所有信息,尤其可以对各种型号处理器进行检测,让用户对自己电脑总体性能有个直观了解。HDTuneHDTunePro是一款小巧易用的硬盘工具软件,其主要功能有硬盘传输速率检测,健康状态检测,温度检测及磁盘表面扫描等。另外,还能检测出硬盘的固件版本、…

    2022年9月1日
    7
  • Rewritecond介绍[通俗易懂]

    Rewritecond介绍[通俗易懂]RewriteCondSyntax:RewriteCondTestStringCondPattern[flags]  RewriteCond指令定义一条规则条件。在一条RewriteRule指令前面可能会有一条或多条RewriteCond指令,只有当自身的模板(pattern)匹配成功且这些条件也满足时规则才被应用于当前URL处理。  TestString是一个字符串,除了包含普通的

    2022年6月13日
    22

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号