python小技巧

[从python包镜像库安装库]
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple PyQt5

[下载离线安装包]
pip download pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple -d .

[指定平台]
pip download pyqt5 --platform linux_x86_64 --only-binary=:all:

[查看依赖]
pip show pyqt5

Name: PyQt5
Version: 5.15.8
Summary: Python bindings for the Qt cross platform application toolkit
Home-page: https://www.riverbankcomputing.com/software/pyqt/
Author: Riverbank Computing Limited
Author-email: info@riverbankcomputing.com
License: GPL v3
Location: e:\software\python38\lib\site-packages
Requires: PyQt5-Qt5, PyQt5-sip
Required-by:

参考:
https://imshuai.com/python-pip-install-package-offline-tensorflow
https://blog.51cto.com/u_15072920/3345726#:~:text=pip离线安装是重点,依赖的安装重点(下面有详细图解)vue在下 %23 1 pip换源---》提高下载模块的速度() %23 2 每个python项目,都应该有个requirement.txt--->项目依赖的模块 >pip ,install%20-r%20requirement.txt%20-i%20%E8%B1%86%E7%93%A3%E6%BA%90%20%23%20%E4%B8%8B%E8%BD%BD%20%23vue%E7%9A%84%E5%AE%89%E8%A3%85%E6%98%AF%E5%9F%BA%E4%BA%8E%E4%BE%9D%E8%B5%96%E3%80%82

posted @ 2023-02-22 21:46  已经变成懒鱼了  阅读(105)  评论(0)    收藏  举报