kylin安裝pyqt5環境

1.Python升級配置

$ sudo rm -f /usr/bin/python
$ sudo ln -s /usr/bin/python3.5 /usr/bin/python

2.替換阿里雲源

1. 備份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 
2.修改
sudo vim /etc/apt/sources.list
將source.list文件內容替換成下面的
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
3. 更新
sudo apt-get update

解決apt-get軟件產生的各種版本依賴關係
http://blog.chinaunix.net/uid-26916352-id-4226916.html
ubuntu 系統下使用pip:ImportError: No module named 'pip._internal'的解決
https://blog.csdn.net/weixin_44607126/article/details/90761637

ubuntu18.04 安裝pip並修改爲阿里雲pip源
https://blog.csdn.net/sinat_36188088/article/details/105418036

3.安裝pyqt5

更換了pip的源之後,安裝直接執行
$ sudo pip3 install PyQt5
$ sudo pip3 install PyQt5-tools

安裝完成!!!
4.

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