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

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的路径起个名字就行了。

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

上一篇:安卓开发之SQLite(表的创建和更新)


下一篇:axios的post请求返回状态码400