码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2020-05-15 00:16:08      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:存在   from   估计   bin   无法安装   efault   pip安装   https   其他   

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等安装)(四)

标签:存在   from   估计   bin   无法安装   efault   pip安装   https   其他   

原文地址:https://www.cnblogs.com/aocshallo1/p/12890646.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!