当前位置:   article > 正文

Python | Package | Python的三种包安装方式(pip/whl/tar.gz)_pip tar.gz

pip tar.gz

PIP 安装与卸载

pip install xxx
pip install xxx==version_number

pip install captcha
pip install captcha==0.4

# XXX/anaconda3/envs/py373/lib/python3.7/site-packages
pip uninstall captcha
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

在这里插入图片描述

Source 安装与卸载

python setup.py build
python setup.py install --record files.txt ## 记录安装后文件的路径

# XXX/anaconda3/envs/py373/lib/python3.7/site-packages/captcha-0.4-py3.7.egg/
pip uninstall captcha
  • 1
  • 2
  • 3
  • 4
  • 5

在这里插入图片描述

Whell 安装与卸载

# 下载whl
wget https://files.pythonhosted.org/packages/11/b0/a5125b88c185586afc64ea6af894eab996de4ef28c395dcdf4a7818a9098/captcha-0.4-py3-none-any.whl
# 安装
pip install captcha-0.4-py3-none-any.whl


# 卸载
# XXX/anaconda3/envs/py373/lib/python3.7/site-packages/captcha
pip uninstall captcha
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

在这里插入图片描述



声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/732860
推荐阅读
相关标签