python3.65+pyqt5+eric6開發環境搭建

我當前環境爲MacOS10.13.6+python3.65+qt5.11.1+eric6 18.08,其它版本不排除有兼容性問題。

1.安裝Anaconda3(集成了QtDesigner)

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

2.安裝pyqt模塊

使用pip3 install pyqt5安裝

3.安裝eric6

在官網選擇一個版本下載安裝https://sourceforge.net/projects/eric-ide/files/eric6/stable/

我這裏下載的是eric6-18.08.zip,將安裝包解壓然後執行安裝文件install.py

使用如下命令:

cd ~/Downloads/
unzip eric6-18.08.zip
sudo python3 ./eric-18.08/install.py

安裝完成後打開eric進行簡要設置。

1.在eric6的偏好設置裏面 Debugger>Python2和Python3分別中設置python2和Python3的解釋器路徑,

2.在Plugins>Plugin Repository中安裝Jedi自動補全插件並在偏好設置Editor>Autocompletion中開啓。

3.將偏好設置中的Qt>Qt tools路徑設置爲QTdesign的路徑(Anaconda3安裝目錄下的bin目錄)

 

到此環境基本搭建完成

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章