ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

[linux mint]Win7 + Linux mint安装(含eclipse、eric、android studio、pycharm等安装)(四)

2020-05-14 23:56:39  阅读:368  来源: 互联网

标签:mint local install linux pip packages 安装 eric


eric

这回安装eric,前面觉得linux mint界面,额……没有那么喜欢吧,想试下其他发行版,结果发现还是linux mint对我的老本lenovo v360支持的好。又折腾回来,结果在安装Eric的时候,各种出错,明明更新了pip,包也提前下载好了,结果在安装的时候依然提示包不存在,无法安装。这个我放在最后说,先来正确的步骤。

部分内容参考:https://www.52pojie.cn/thread-1010915-1-1.html


 

1、下载eric

官方地址:http://eric-ide.python-projects.org/

下载地址:http://eric-ide.python-projects.org/eric-download.html

下载地址页面有一个大大的Download,应该都能找到。

下载有些慢,可以考虑使用aria2下载,会快一些

2.安装qt组件

sudo apt install qt5-default qttools5-dev-tools

3.安装eric依赖

python3 -m pip install <包名>

建议用以上命令先将eric相关依赖安装

4.解压eric

放在一个目录,建议/opt

sudo mv <eric目录> /opt

5.进入eric目录,并安装

sudo python3 install.py

 


 下面说说pip 的事儿,前面安装的时候是这个样子的:

python3 ./install.py
Checking dependencies
Python Version: 3.6.9
Found PyQt5
Found pyuic5
PyQtWebEngine could not be detected.
Error: cannot import name 'QtWebEngineWidgets'

Shall 'PyQtWebEngine' be installed using pip? (Y/n) y
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: PyQtWebEngine in /usr/local/lib/python3.6/dist-packages (5.14.0)
Requirement already satisfied: PyQt5-sip<13,>=12.7 in /home/lee/.local/lib/python3.6/site-packages (from PyQtWebEngine) (12.7.2)
Requirement already satisfied: PyQt5>=5.14 in /home/lee/.local/lib/python3.6/site-packages (from PyQtWebEngine) (5.14.2)
PyQtChart could not be detected.
Error: cannot import name 'QtChart'

Shall 'PyQtChart' be installed using pip? (Y/n) y
\Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: PyQtChart in /usr/local/lib/python3.6/dist-packages (5.14.0)
Requirement already satisfied: PyQt5-sip<13,>=12.7 in /home/lee/.local/lib/python3.6/site-packages (from PyQtChart) (12.7.2)
Requirement already satisfied: PyQt5>=5.14 in /home/lee/.local/lib/python3.6/site-packages (from PyQtChart) (5.14.2)
QScintilla could not be detected.
Error: cannot import name 'Qsci'

Shall 'QScintilla' be installed using pip? (Y/n) y
Sorry, please install QScintilla2 and
its PyQt5 wrapper.
Error: QScintilla could not be installed.

就是明明已经用pip安装,但在安装eric的时候,就是提示不对,没有依据,但估计是linux自带多个版本python,在安装pip时多个版本之间的问题。

解决问题的方法就是使用pip的时候,通过python -m调用,使用python的版本选择pip的版本

python -m pip install      #对应python2.X的pip
python3 -m pip install     #对应python3.X的pip

建议先使用pip安装完相关依赖安装,再安装eric。

在安装过程中,会提示下面的内容。

 WARNING: The scripts pylupdate5, pyrcc5 and pyuic5 are installed in '/home/lee/.local/bin' which is not on PATH.
 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

 需要修改/etc/profile,将相关路径加入path

方法参见链接,这个是修改JAVA_HOME的PATH     https://www.cnblogs.com/jpfss/p/7895944.html

把要加入path的路径起个名字就行了。

标签:mint,local,install,linux,pip,packages,安装,eric
来源: https://www.cnblogs.com/aocshallo1/p/12890646.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有