|
cmd中输入 pip list
查找是否安装了具体的包
怎么安装包?
如果是在cmd中,可以直接输入 pip install -包名(若在jupyter中前面加个“!”)
更新包
若出现以下报错:- Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/d5/31/b026f9f7c87adf8027f51f98f392f6558982485b7202af5f9276492b2141/Pillow-9.3.0-1-cp37-cp37m-win_amd64.whl (Caused by ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000237E4168518>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)'))
复制代码
则需要换个源下载:- pip install 包名 -i 指定源
- pip install --upgrade 包名 -i 指定源
复制代码- 清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple华中理工大学:http://pypi.hustunique.com/山东理工大学:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/
复制代码 问题解决:
总结
到此这篇关于如何查看Python安装了哪些包的文章就介绍到这了,更多相关Python安装包查看内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
来源:https://www.jb51.net/python/292161hyy.htm
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|