最新版 Anaconda + Pyqt5 + Eric6 + Pycharm 安裝指南
安裝包下載
Pyqt5 exe版不是最新的乏苦,最新的 wheel 版下載奇慢,這里直接使用 pip 命令安裝和二。
這里下載的社區(qū)版鸟悴,是免費(fèi)的陈辱,相比專業(yè)版缺少部分功能(例如:Web 開(kāi)發(fā),Python Web 框架细诸,Python 的探查沛贪,遠(yuǎn)程開(kāi)發(fā)能力,數(shù)據(jù)庫(kù)和SQL支持)震贵,暫時(shí)用不到鹏浅,社區(qū)版功能夠用了!
開(kāi)始安裝
安裝 Anaconda
下載完之后先安裝 Anaconda 一路默認(rèn)安裝屏歹,加入系統(tǒng)環(huán)境變量要勾選上隐砸,安裝完成后,將源修改為清華的源蝙眶〖鞠#可參考Anaconda 鏡像使用幫助
Windows 用戶無(wú)法直接創(chuàng)建名為 .condarc
的文件,可先執(zhí)行 conda config --set show_channel_urls yes
生成該文件之后再修改幽纷,.condarc
文件路徑在當(dāng)前用戶目錄下式塌。
我的 .condarc
文件如下:
ssl_verify: true
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
安裝 Pyqt5
從 Pyqt5.7 開(kāi)始,Pyqt 不再提供 exe 的版本友浸,但是直執(zhí)行 pip install pyqt5
峰尝,會(huì)默認(rèn)拉取最新版本,出現(xiàn)與 sypder 版本不匹配導(dǎo)致 sypder 打不開(kāi)的問(wèn)題收恢。所以推薦用下面的方法:
管理員權(quán)限打開(kāi) Anaconda prompt武学,執(zhí)行
pip uninstall spyder
pip install spyder
pip install pyqt5
pip install pyqt5-tools
或者指定用豆瓣的源會(huì)更快
pip install pyqt5 -i https://pypi.douban.com/simple
pip install pyqt5-tools -i https://pypi.douban.com/simple
這個(gè)裝完后添加 pyqt5-tools 目錄到環(huán)境變量 Path 中或把 pyqt5-tools 安裝路徑(例如G:\Anaconda3\Lib\site-packages\pyqt5-tools)下的 designer.exe 拷貝到 G:\Anaconda3\Lib\site-packages\PyQt5\Qt\bin祭往。
然后安裝 QScintilla 。
pip install QScintilla
或
pip install QScintilla -i https://pypi.douban.com/simple
安裝 Eric6
將下載的壓縮包解壓到 site-packages 目錄下火窒,執(zhí)行
pip install.py install
我安裝時(shí)報(bào)錯(cuò) Qsci 有問(wèn)題硼补,于是卸載 QScintilla,重新安裝
重新安裝 QScintilla 后熏矿,Eric6 也成功安裝已骇!
最新版的安裝之后桌面會(huì)有快捷方式了,不用像舊版一樣自己新建票编。
打開(kāi)之后是這樣子的
安裝 Pycharm
社區(qū)版是免費(fèi)的褪储,直接默認(rèn)安裝即可。