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)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • 【Landsat 8】介绍

    【Landsat 8】介绍【Landsat8】介绍简介传感器OLI陆地成像仪TIRS热红外传感器相关阅读简介发射日期2013年2月11日传感器OLI,TIRS海拔高度705公里轨道倾角98.2°轨道类型近极轨,太阳同步轨道赤道穿越时间当地时间上午10:00(±15min)(降交点)轨道周期99分钟重访周期16天传感器Landsat8卫星包含OLI和TIRS两种传感器。OLI陆地成像仪包括9个波段,空间分辨率为30米,其中包括一个15米的全色

    2022年7月23日
  • M10F支持扩展卡吗_ibb与obb

    M10F支持扩展卡吗_ibb与obbeBPF实战编程接口、前端:bcc和bpftrace详解、原理、实例等

    2022年9月16日
  • iOS 强大第三方资源库

    iOS 强大第三方资源库Github用法git-recipesGitrecipesinChinese.高质量的Git中文教程.lark怎样在Github上面贡献代码my-git有关git的学习资料gitignore非常赞有用的.gitignore模板集合(忽略上传的文件集合),包含了各种语言.完整App@open-source-ios-apps-iOS开源App集合,分:swift与Objec…

    2022年6月9日
  • 500G 史上最全的JAVA全套视频教程网盘[通俗易懂]

    500GJAVA视频网盘分享(JEECG开源社区)[涵盖从java入门到深入架构,Linux、云计算、分布式、大数据Hadoop、ios、Android、互联网技术应有尽有]JEECG开源社区秉承开源宗旨,分享社区Java架构视频,更多资料点击:www.jeecg.orgJAVA快速开发平台源码下载:https://gitee.com/jeecg/jeecgJEE…

    2022年4月10日
  • 使用js替换文本中的换行符

    使用js替换文本中的换行符核心语句:使用正则表达式:txts=txts.replace(/[\n\r]/g,’需替换的内容’)如何用js替换文本里的换行符\n?

    2022年5月23日
  • pycharm永久激活码2021【注册码】

    pycharm永久激活码2021【注册码】,https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月19日

发表回复

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

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