一个简单的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第三方库


热门话题
Javaservlet,使用Quartz发送邮件   用Java编写XYRectangle类   java Docker/AWS ECS容器支持的服务(端点)数量   音频Java读取WAV文件作为浮点数组   java为什么是日历。九月不起作用了?   java连接到HTTPS url并发布到它   java线程动画示例不起作用   java查找HashMap是否包含所选值和返回键   java与后端API的交互   JavaFX启动时在JavaFX中执行应用程序启动异常   每T秒从Java运行一次MATLAB   java@Array(长度=?)怎么样OpenHFT中的注释/使用的值   java无法从InputStream读取多个可外部化的对象   java My RestController不返回对象的所有属性   java使Android XML阅读器只读取XML文件的一部分   java注释会影响编译时吗?   从Java到C#的迭代器方法与接口的等效性,然后在类上实现?   swing为什么Java中的侦听器相互依赖?