Eric6安装和配置


title: Eric6安装和配置
date: 2019-12-07 19:23:49
categories:
- Python
tags:
- 软件安装
- 桌面开发
- PyQt


准备

官网下载:http://eric-ide.python-projects.org/eric-download.html

有人说要先安装qt-tools再安装qt5 不知道有没有道理,我是先装的qt5,后来的qt designer打开路径是我自己加上去的

#环境
C:\Program Files\Python37\Scripts>python -m pip install --upgrade pip
C:\Program Files\Python37\Scripts>pip install PyQt5-tools
C:\Program Files\Python37\Scripts>pip install PyQt5==5.13.0
C:\Program Files\Python37\Scripts>pip install QScintilla

安装

安装时的提示

C:\Program Files\Python37\Scripts>python C:\\eric6-19.11\\install.py
Checking dependencies
Python Version: 3.7.4
Found PyQt5
Found pyuic5
PyQtWebEngine could not be detected.
Error: cannot import name 'QtWebEngineWidgets' from 'PyQt5' (C:\Program Files\Python37\lib\site-packages\PyQt5\__init__.py)

Shall 'PyQtWebEngine' be installed using pip? (Y/n) y
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting PyQtWebEngine
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e0/8e/20771122d37e4274eff3c69fc3216b5ddeeef67064d62a1181c78c9a5d58/PyQtWebEngine-5.13.2-5.13.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (54.5MB)
     |████████████████████████████████| 54.5MB 819kB/s
Requirement already satisfied: PyQt5>=5.13 in c:\program files\python37\lib\site-packages (from PyQtWebEngine) (5.13.2)
Requirement already satisfied: PyQt5_sip<13,>=4.19.19 in c:\program files\python37\lib\site-packages (from PyQt5>=5.13->PyQtWebEngine) (12.7.0)
Installing collected packages: PyQtWebEngine
Successfully installed PyQtWebEngine-5.13.2
PyQtChart could not be detected.
Error: cannot import name 'QtChart' from 'PyQt5' (C:\Program Files\Python37\lib\site-packages\PyQt5\__init__.py)

Shall 'PyQtChart' be installed using pip? (Y/n) y
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting PyQtChart
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/02/ea/d4daca481a8da8dfe8dd194ccd773126704744df9e71b55b19e4b8dc988e/PyQtChart-5.13.1-5.13.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (848kB)
     |████████████████████████████████| 849kB 159kB/s
Requirement already satisfied: PyQt5>=5.13 in c:\program files\python37\lib\site-packages (from PyQtChart) (5.13.2)
Requirement already satisfied: PyQt5_sip<13,>=4.19.19 in c:\program files\python37\lib\site-packages (from PyQt5>=5.13->PyQtChart) (12.7.0)
Installing collected packages: PyQtChart
Successfully installed PyQtChart-5.13.1

Python Version: 3.7.4
Found PyQt5
Found pyuic5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWidgets
Found QtWebEngineWidgets
Qt Version: 5.13.0
sip Version: 5.0.0
PyQt Version: 5.13.0
QScintilla Version: 2.11.3
All dependencies ok.

Cleaning up old installation ...

Creating configuration file ...

Compiling user interface files ...

Compiling source files ...

Installing eric6 ...
Installing Python API files to 'C:\Program Files\Python37\Lib\site-packages\PyQt5\Qt\qsci\api\python'.
Installing Ruby API files to 'C:\Program Files\Python37\Lib\site-packages\PyQt5\Qt\qsci\api\ruby'.
Installing QSS API files to 'C:\Program Files\Python37\Lib\site-packages\PyQt5\Qt\qsci\api\qss'.

The Python package 'pywin32' could not be imported.

Shall 'pywin32' be installed using pip? (Y/n) y
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pywin32
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bb/23/00fe4fbf9963f3bcb34a443eba0d0283fc51e5887d4045552c87490394e4/pywin32-227-cp37-cp37m-win_amd64.whl (9.1MB)
     |████████████████████████████████| 9.1MB 819kB/s
Installing collected packages: pywin32
Successfully installed pywin32-227

Installation complete.


Press enter to continue...

配置

大部分和网上的教程一样,比如https://blog.csdn.net/qq_28019591/article/details/84567724
补充: 自动替换功能仁者见仁 自己按照自己喜好来 乱勾的话会很难受,网传的别人的截图都感觉很不靠谱的样子,自己多试试

最新版的是没有汉化的 英文用起来难受的话可以自己去找2017年10月发布的版本 里面有对应的中文汉化文件,但到目前为止我还没找到免费的资源,也就凑合着看8

如果遇到打不开qt designer的情况,在qt设置中,QT tools的路径设置为C:\Program Files\Python37\Lib\site-packages\pyqt5_tools\Qt\bin,即含有designer.exe的路径,这个exe在那个路径就填哪个路径,好像qt5新版的把它移除了,只能在qt-tools里面找到


你可能感兴趣的:(软件安装,软件安装,桌面开发)