Python requirements.txt 公共依赖包

每次换换电脑安装python 依赖包版本号经常对不上安装报错

所以安装好一个环境后就可以使用这个依赖包 不用一个一个安装

如果有一个环境装好了,可以在环境里面使用,通过以下命令可以导出当前电脑的配置信息

 pip freeze > requirements.txt

记录以下python3.9 自己常用的依赖包requirements.txt内容如下

allure-pytest==2.8.40
allure-python-commons==2.8.40
apipkg==1.5
appdirs==1.4.4
Appium-Python-Client==1.1.0
atomicwrites==1.4.0
attrs==21.2.0
black==19.10b0
certifi==2020.12.5
cffi==1.14.5
chardet==4.0.0
click==7.1.2
colorama==0.4.4
ConfigArgParse==1.4.1
execnet==1.8.0
filelock==3.0.12
Flask==1.1.2
Flask-BasicAuth==0.2.0
gevent==21.1.2
geventhttpclient==1.4.4
greenlet==1.1.0
httprunner==3.1.4
idna==2.10
iniconfig==1.1.1
itsdangerous==2.0.0
Jinja2==2.11.3
jmespath==0.9.5
locust==1.5.2
loguru==0.4.1
MarkupSafe==1.1.1
more-itertools==8.7.0
msgpack==1.0.2
packaging==20.9
pathspec==0.8.1
pluggy==0.13.1
psutil==5.8.0
py==1.10.0
pycparser==2.20
pydantic==1.8.1
PyMySQL==1.0.2
pyparsing==2.4.7
pytest==5.4.2
pytest-forked==1.3.0
pytest-html==2.1.1
pytest-metadata==1.11.0
pytest-ordering==0.6
pytest-xdist==1.33.0
PyYAML==5.4.1
pyzmq==22.0.3
redis==3.5.3
regex==2021.4.4
requests==2.25.1
selenium==3.141.0
sentry-sdk==0.14.4
six==1.16.0
toml==0.10.2
typed-ast==1.4.3
typing-extensions==3.10.0.0
urllib3==1.25.8
wcwidth==0.2.5
Werkzeug==2.0.0
win32-setctime==1.0.3
zope.event==4.5.0
zope.interface==5.4.0
mitmproxy==7.0.4
pandas==1.3.0
requests-toolbelt==0.9.1
filetype==1.0.8
pytest-repeat==0.9.1
pymongo==4.0.0
pycryptodome==3.14.1
Faker==13.12.1
pytest-rerunfailures==10.2

将requirements.txt文件放置在桌面后就可以直接使用以下命令行安装依赖包

pip install -r requirements.txt

导入成功后可以在pychram中查看

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值