zoukankan      html  css  js  c++  java
  • pip的基本使用

    一、查看安装的依赖包列表

    [root@localhost alicoud_check_ecs_validity-1.0]# pip3 freeze
    allure-pytest==2.8.40
    allure-python-commons==2.8.40
    attrs==21.2.0
    et-xmlfile==1.1.0
    importlib-metadata==4.5.0
    iniconfig==1.1.1
    lxml==4.5.1
    openpyxl==3.0.7
    packaging==20.9
    pluggy==0.13.1
    py==1.10.0
    PyMouse==1.0
    pyparsing==2.4.7
    pytest==6.2.3
    selenium==3.141.0
    six==1.16.0
    toml==0.10.2
    typing-extensions==3.10.0.0
    urllib3==1.26.5
    zipp==3.4.1
    [root@localhost alicoud_check_ecs_validity-1.0]# 

    二、安装依赖包,默认安装到python3安装目录下的libpython3.7site-packages目录下

    [root@localhost alicoud_check_ecs_validity-1.0]# pip3 install pytest

    三、卸载依赖包

    [root@localhost site-packages]# pip3 uninstall -y pytest

    四、升级pip

    pip3 install --upgrade pip

    五、离线安装whl依赖安装包

    [root@localhost alicoud_check_ecs_validity-1.0]# pip3 install whell packages/pytest-6.2.3-py3-none-any.whl  
  • 相关阅读:
    ReentrantLock与synchronized的差别
    读TIJ -1 对象入门
    wikioi 2573 大顶堆与小顶堆并用
    开源 免费 java CMS
    UVA10972
    springboot5
    spring-boot4
    spring-boot3
    spring-boot2
    spring-boot1
  • 原文地址:https://www.cnblogs.com/sky-cheng/p/14911874.html
Copyright © 2011-2022 走看看