一个简单的inscript多包安装程序

dependency-fixer的Python项目详细描述


家属固定器

python依赖修正器和可导入脚本函数

这个python脚本可以作为一个独立的python模块安装程序工作,并且可以通过从dependencyfixer将fix函数导入到程序中来在程序运行时安装模块。在

uses pip._internal.cli.main.main() function to install

#使用此软件包的优点

  • 独立安装脚本
  • 可以同时安装多个模块
  • 提供要安装的脚本数量的报告(尝试失败)

#安装

pip install dependency-fixer

#用法

❖Direct: *(If are using source clone)

run dependencyfixer.py and follow instruction

❖Importing to other python scripts

  • Import it like : from dependencyfixer import fix
  • Function and Arguements:
  • Function: fix(dep,auto=True,instantkill=False)
  • Arguements:
  • Mandatory: dep ( List of all packages to be installed or checked )
  • Optional: ➤instantkill ( If set True then stops any futher execution of script in which function is used ) ( False by default )auto ( If set False then asks for user's consent to install packages, if user refuses, then return result=0 ) ( True by default )verbose ( If set True then prints details in console during installation and after installation ) ( False by default )
  • 示例dep=['pillow','jupyter']result,leftdep=fix(dep)
  • This function returns 2 values :
  • leftdependencies : (list of packages that couldn't be installed)
  • result {1,0,-1} | 1 | : All modules installed | 0 | : No modules installed | -1 | : Some modules can not be installed

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何将springboot war部署到debian jetty8   java破坏了函数,即使它看起来是正确的   当MockMvc不可自动编译时,java会有选择地从Spring Security向其应用单个过滤器   java AndroidStudio每秒播放n次生成的声音   JavaJBossSeam:继承的方法被拦截了吗?   ScheduledExecutorService中线程默认名称中池号的java含义   在Java中用递归方法实现类Fibonacci的递归   java虚拟路径/文件夹   java即时与ZoneDateTime。转换到另一时区   用GaussLegendre算法在java中逼近Pi   java RecyclerView findFirstVisibleItemPosition()返回1   java根据当前经过身份验证的用户的角色返回不同的JSON对象   java从内部类访问扩展类的方法   Android程序中的Java语法WRT静态方法   可选参数初始化Java字符串文字时出错