通过单个python文件安装多个python软件包 [英] installing multiple python packages by single python file
本文介绍了通过单个python文件安装多个python软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在控制台上运行该python文件时如何制作一个安装上述python软件包的python文件,而不是像我们使用pip那样一一安装软件包 我也对setup.py感到困惑 如果是怎么做的 请帮助
How to make a python file, which installs the mentioned python packages, on running that python file in console instead of installing packages one by one as we do by using pip I am also confused with setup.py is it same and if it is how to do please help
推荐答案
您可以制作一个文本文件,其中包含您的软件包要求名称.像这样的是 requirement.txt
You can make one text file which has your name of package requirements. Like this is requirement.txt
requests==2.7.0
selenium==3.4.3
Flask==0.10.1
retrying==1.3.3
然后您可以像
pip install -r requirement.txt
注意:将此txt
文件放置在pip
所在的位置.
Note: Place this txt
file to at where the pip
is.
关于与setup.py
有何不同,您可以参考此
And for how this differs from the setup.py
you can refer this
这篇关于通过单个python文件安装多个python软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文