一个简单的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使用Hibernate EntityManager(与Hibernate Core相比)有什么缺点吗?   使用kotlin测试用java编写的安卓应用程序   java在跳转到JavaEE之前,我应该做更多的JavaSE吗?   Java:iText库PDF合并,PDF始终位于页面底部   使用JDBCSpring在多个查询中回滚java   java JPA匹配多个关系中的元素子集   java Datanucleus RDBMS JPA JarWithDependenceCues   java与Http API相比,ThriftFinagle API有多安全?它们的性能如何?   JavaNetty服务器如何从外部调用方法?   如何在访问ApacheTomcat服务器上托管的java web应用程序时获取计算机和用户信息?   java如何存储和重放JDBC语句?   java if语句字符串比较