最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ubuntu 安裝pyqt5和卸載pyQt5的方法

 更新時(shí)間:2020年03月24日 09:39:13   作者:主攻  
這篇文章主要介紹了ubuntu 安裝pyqt5和卸載pyQt5的方法,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧

安裝pyqt5

wind@wind-ThinkPad-X250:~/Downloads/PyQt5_gpl-5.12.2$ python3 -m pip install PyQt5
Collecting PyQt5
 Downloading https://files.pythonhosted.org/packages/6a/f4/6a63aafcee3efd2b156dc835d9c85ca99b24e80f8af89b6da5c46054fe43/PyQt5-5.12.2-5.12.3-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (61.5MB)
  100% |████████████████████████████████| 61.5MB 18kB/s 
Collecting PyQt5_sip<13,>=4.19.14 (from PyQt5)
 Downloading https://files.pythonhosted.org/packages/08/19/ef6b97cfdbb8f9312d71388384f572706e40bf88f07fffb0fc64846b4a36/PyQt5_sip-4.19.17-cp35-cp35m-manylinux1_x86_64.whl (67kB)
  100% |████████████████████████████████| 71kB 107kB/s 
Installing collected packages: PyQt5-sip, PyQt5
Successfully installed PyQt5-5.12.2 PyQt5-sip-4.19.17
You are using pip version 8.1.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
wind@wind-ThinkPad-X250:~/Downloads/PyQt5_gpl-5.12.2$ 

查看python 所有的安裝包

>>> import sys
>>> sys.modules.keys()
dict_keys(['problem_report', '_bz2', 'email.feedparser', 'email.mime', 'base64', 'select', 'tarfile', '__future__', '_compat_pickle', 'importlib.util', 'mpl_toolkits', 'json.scanner', 'signal', 'json', 're', 'subprocess', 'ipaddress', 'configparser', '_functools', 'bz2', 'uu', 'pyexpat', 'copyreg', '__main__', 'selectors', 'apt.package', 'PyQt5', 'xml', 'pyexpat.errors', '_json', '_thread', 'email.message', 'apt.cdrom', 'calendar', 'importlib.abc', 'textwrap', 'random', 'email.mime.text', 'email._encoded_words', 'email._parseaddr', 'shutil', 'atexit', 'sre_parse', '_frozen_importlib_external', 'importlib.machinery', '_compression', 'zlib', 'copy', 'fcntl', '_weakref', 'sitecustomize', 'collections.abc', 'apport_python_hook', 'email.header', 'email.errors', '_io', '_operator', 'email.encoders', '_string', 'contextlib', '_frozen_importlib', '_pickle', 'apt.cache', 'token', '_signal', '_collections_abc', 'email._policybase', 'apt.progress', 'encodings.utf_8', 'genericpath', '_hashlib', 'heapq', '_socket', '_stat', 'site', 'sysconfig', 'xml.dom.minicompat', 'socket', '_struct', 'string', 'email.charset', 'importlib', 'pyexpat.model', 'gzip', 'codecs', '_warnings', 'apport.packaging_impl', 'threading', 'encodings', 'builtins', 'enum', 'binascii', 'http', 'itertools', 'operator', '_ssl', 'xml.parsers.expat', '_datetime', 'glob', '_locale', '_random', 'apport.fileutils', 'xml.dom.NodeFilter', '_posixsubprocess', 'abc', 'urllib.error', 'datetime', 'sre_constants', 'json.encoder', 'encodings.aliases', 'reprlib', '_weakrefset', 'json.decoder', 'importlib._bootstrap_external', 'sre_compile', 'email.mime.base', 'email.parser', 'math', 'keyword', 'encodings.latin_1', 'linecache', '_heapq', 'urllib', 'apport', 'tokenize', 'importlib._bootstrap', 'urllib.response', 'xml.parsers.expat.errors', 'apport.report', 'apport.packaging', 'posixpath', 'gettext', 'xml.dom.xmlbuilder', 'xml.dom', 'pwd', 'os', '_sysconfigdata_m', '_sitebuiltins', 'errno', 'xml.parsers.expat.model', 'os.path', '_sysconfigdata', '_sre', 'email.mime.multipart', 'collections', 'apt.progress.base', 'traceback', 'apt', 'io', 'weakref', 'urllib.request', 'hashlib', 'email.iterators', 'quopri', 'http.client', 'zipimport', '_imp', 'sys', 'rlcompleter', '_bootlocale', 'locale', 'urllib.parse', 'fnmatch', 'tempfile', 'xml.dom.domreg', '_codecs', 'bisect', 'email.utils', 'email.mime.nonmultipart', '_bisect', 'stat', 'warnings', 'ssl', 'functools', 'email', 'grp', '_lzma', 'email.quoprimime', 'struct', 'apt.progress.text', 'time', 'xml.parsers', 'email.base64mime', 'apt_pkg', 'pickle', 'imp', 'types', 'xml.dom.minidom', 'lzma', 'marshal', '_collections', 'readline', 'posix'])
>>> 

刪除pyqt5安裝包

wind@wind-ThinkPad-X250:~$ sudo python3 -m pip uninstall PyQt5
[sudo] password for wind: 
WARNING: The directory '/home/wind/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling PyQt5-5.12.2:
 Would remove:
  /home/wind/.local/bin/pylupdate5
  /home/wind/.local/bin/pyrcc5
  /home/wind/.local/bin/pyuic5
  /home/wind/.local/lib/python3.5/site-packages/PyQt5-5.12.2.dist-info/*
  /home/wind/.local/lib/python3.5/site-packages/PyQt5/*
 Would not remove (might be manually added):
  /home/wind/.local/lib/python3.5/site-packages/PyQt5/sip.so
Proceed (y/n)? y
 Successfully uninstalled PyQt5-5.12.2
wind@wind-ThinkPad-X250:~$ 

使用例子

#!/bin/env python3 
# -*- coding: utf-8 -*- 
 
import sys
from PyQt5.QtWidgets import QApplication, QWidget  #導(dǎo)入相應(yīng)的包
 
if __name__ == '__main__':
 
   app = QApplication(sys.argv)     #創(chuàng)建QApplication對(duì)象是必須,管理整個(gè)>程序,參數(shù)可有可無(wú),有的話可接收命令行參數(shù)
 
   w = QWidget()            #創(chuàng)建窗體對(duì)象,
   w.resize( 250, 150 )         #設(shè)置窗體大小
   w.move( 100, 300 )          #設(shè)置在屏幕上的顯示位置
   w.setWindowTitle( 'Simple' )     #設(shè)置窗口標(biāo)題
   w.show()               #窗口顯示
 
   sys.exit( app.exec_() )

到此這篇關(guān)于ubuntu 安裝pyqt5和卸載pyQt5的方法的文章就介紹到這了,更多相關(guān)ubuntu 安裝pyqt5和卸載pyQt5內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • Python+Opencv實(shí)現(xiàn)圖像匹配功能(模板匹配)

    Python+Opencv實(shí)現(xiàn)圖像匹配功能(模板匹配)

    這篇文章主要為大家詳細(xì)介紹了Python+Opencv實(shí)現(xiàn)圖像匹配功能,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2021-10-10
  • python?open讀取文件內(nèi)容時(shí)的mode模式解析

    python?open讀取文件內(nèi)容時(shí)的mode模式解析

    這篇文章主要介紹了python?open讀取文件內(nèi)容時(shí)的mode模式解析,Python可以使用open函數(shù)來(lái)實(shí)現(xiàn)文件的打開(kāi),關(guān)閉,讀寫(xiě)操作,本文給大家介紹的非常詳細(xì),需要的朋友可以參考下
    2022-05-05
  • python+influxdb+shell編寫(xiě)區(qū)域網(wǎng)絡(luò)狀況表

    python+influxdb+shell編寫(xiě)區(qū)域網(wǎng)絡(luò)狀況表

    這篇文章主要為大家詳細(xì)介紹了python+influxdb+shell編寫(xiě)區(qū)域網(wǎng)絡(luò)狀況表,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2018-07-07
  • python 批量解壓壓縮文件的實(shí)例代碼

    python 批量解壓壓縮文件的實(shí)例代碼

    這篇文章主要介紹了python 批量解壓壓縮文件的實(shí)例代碼,代碼簡(jiǎn)單易懂,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2019-06-06
  • Python利用字節(jié)串或字節(jié)數(shù)組來(lái)加載和保存PDF文檔

    Python利用字節(jié)串或字節(jié)數(shù)組來(lái)加載和保存PDF文檔

    處理PDF文件的可以直接讀取和寫(xiě)入文件系統(tǒng)中的PDF文件,然而,通過(guò)字節(jié)串(byte string)或字節(jié)數(shù)組(byte array)來(lái)加載和保存PDF文檔在某些情況下更高效,本文將介紹如何使用Python通過(guò)字節(jié)串或字節(jié)數(shù)組來(lái)加載和保存PDF文檔,需要的朋友可以參考下
    2024-09-09
  • Python中BaseHTTPRequestHandler實(shí)現(xiàn)簡(jiǎn)單的API接口

    Python中BaseHTTPRequestHandler實(shí)現(xiàn)簡(jiǎn)單的API接口

    本文主要介紹了Python中BaseHTTPRequestHandler實(shí)現(xiàn)簡(jiǎn)單的API接口,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2023-07-07
  • Pandas替換NaN值的方法實(shí)現(xiàn)

    Pandas替換NaN值的方法實(shí)現(xiàn)

    本文主要介紹了Pandas替換NaN值的方法實(shí)現(xiàn),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2023-01-01
  • OpenCV半小時(shí)掌握基本操作之直線檢測(cè)

    OpenCV半小時(shí)掌握基本操作之直線檢測(cè)

    這篇文章主要介紹了OpenCV基本操作之直線檢測(cè),本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2021-09-09
  • python里使用正則表達(dá)式的組嵌套實(shí)例詳解

    python里使用正則表達(dá)式的組嵌套實(shí)例詳解

    這篇文章主要介紹了python里使用正則表達(dá)式的組嵌套實(shí)例詳解的相關(guān)資料,希望通過(guò)本文能幫助到大家,需要的朋友可以參考下
    2017-10-10
  • Python實(shí)現(xiàn)公歷(陽(yáng)歷)轉(zhuǎn)農(nóng)歷(陰歷)的方法示例

    Python實(shí)現(xiàn)公歷(陽(yáng)歷)轉(zhuǎn)農(nóng)歷(陰歷)的方法示例

    這篇文章主要介紹了Python實(shí)現(xiàn)公歷(陽(yáng)歷)轉(zhuǎn)農(nóng)歷(陰歷)的方法,涉及農(nóng)歷算法原理及Python日期運(yùn)算相關(guān)操作技巧,需要的朋友可以參考下
    2017-08-08

最新評(píng)論

吴忠市| 公安县| 海南省| 嘉定区| 武功县| 宜阳县| 西和县| 绥棱县| 株洲县| 西安市| 剑川县| 黔西| 齐齐哈尔市| 招远市| 炎陵县| 韶关市| 海丰县| 勐海县| 疏勒县| 比如县| 南木林县| 泰宁县| 邳州市| 盘锦市| 林甸县| 鹿泉市| 新营市| 斗六市| 崇左市| 嘉兴市| 讷河市| 武清区| 莎车县| 桂东县| 浦东新区| 宣武区| 庆阳市| 金堂县| 镇江市| 克什克腾旗| 根河市|