python: 自动安装缺失库文件的方法
作者:JNingWei 时间:2023-08-30 05:42:38
Method
通过一条指令即可完成:
os.system('所需指令')
Note:
os.system('所需指令') 还可以完成许多其他任务,非常强大。
Example
try:
from tqdm import tqdm
except:
import os
os.system('sudo pip3 install tqdm')
from tqdm import tqdm
来源:https://blog.csdn.net/JNingWei/article/details/79758335
标签:python,安装,缺失库
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
微信小程序使用Vant Weapp组件库的方法步骤
2023-09-11 15:17:34
![](https://img.aspxhome.com/file/2023/6/56286_0s.jpg)
mysql 中文乱码 解决方法集锦
2024-01-28 06:05:29
ThinkPHP5&5.1实现验证码的生成、使用及点击刷新功能示例
2023-11-17 02:54:39
python类装饰器用法实例
2023-06-25 11:12:38
Windows下Anaconda的安装和简单使用方法
2022-04-21 16:46:50
![](https://img.aspxhome.com/file/2023/5/67795_0s.png)
ASP编程常用的分页代码
2007-09-11 13:57:00
Python实现弹球小游戏
2022-10-06 21:21:16
![](https://img.aspxhome.com/file/2023/0/120300_0s.jpg)
mysql建立自定义函数的问题
2024-01-19 06:26:52
win10下tensorflow和matplotlib安装教程
2023-03-23 21:47:27
![](https://img.aspxhome.com/file/2023/4/118094_0s.png)
vue 解决data中定义图片相对路径页面不显示的问题
2024-04-30 10:24:52
![](https://img.aspxhome.com/file/2023/9/130219_0s.jpg)
深入了解Python Opencv数据增强
2023-10-27 05:00:01
![](https://img.aspxhome.com/file/2023/4/106994_0s.png)
在Pycharm中安装Pandas库方法(简单易懂)
2023-07-21 19:26:28
![](https://img.aspxhome.com/file/2023/0/104980_0s.jpg)
简洁js的隔行变色代码
2008-06-18 18:17:00
PYQT5实现控制台显示功能的方法
2023-08-08 11:11:53
![](https://img.aspxhome.com/file/2023/4/67334_0s.gif)
利用numpy+matplotlib绘图的基本操作教程
2021-01-26 11:14:31
![](https://img.aspxhome.com/file/2023/8/133778_0s.png)
Django url,从一个页面调到另个页面的方法
2021-08-08 03:51:51
JavaScript 与 ActionScript 3.0 交互的一些问题
2008-01-27 12:20:00
python基础教程之简单入门说明(变量和控制语言使用方法)
2023-01-06 00:25:20
MySQL数据库备份恢复的两个实用方法
2008-12-31 15:09:00
Python操作Excel插入删除行的方法
2023-08-05 21:13:50