JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

批量安装 requirements.txt 中的库,并忽略阻塞的路

发布时间 2023-09-12 14:45:28作者: hello_tree

import subprocess

# 定义要安装的库的 requirements 文件路径
requirements_file = "requirements.txt"

# 使用 subprocess 执行 pip install 命令并加上 &
cmd = f"pip install -r {requirements_file} &"

# 执行命令
subprocess.call(cmd, shell=True)

    本栏目推荐文章
  • 批量修改文件名-txt_word_ppt批量修改文件名
  • devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free data blocks
  • 网站优化之robots.txt
  • Vue3中实现world、excel、txt、pdf文件预览,(vue-office的使用)
  • 在mac上转换txt文件编码方式
  • sqlsugar在使用mysql时,Dbfirst and Codefirst requires system table permissions
  • python报错:`visualize_sharding` requires `rich` to be installed.
  • Required request body is missing报错及解决
  • 练习 : Flink 读取 data.txt(json格式文件)文件并进行解析,写入到mysql中
  • Requires: libpython3.6m.so.1.0()(64bit)
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们