zoukankan      html  css  js  c++  java
  • python pip

      pip常用命令

    install:安装软件
    download:下载软件
    uninstall:卸载软件
    freeze:输出本地软件环境到文件中pip freeze > requirements.txt,可以在其他服务器通过pip install -r requirements.txt直接安装软件
    list:列出当前系统中的安装包
    show:查看安装包信息
    check:检查安装包依赖信息
    search:查找安装包
    wheel:打包软件到whell格式
    hash:计算安装包hash值
    completion:生成命令补全
    help:获取命令帮助
    

      pip使用豆瓣源加速安装软件包

    pip install -i https://pypi.douban.com/simple/ django==1.11.11
    

      离线服务器部署软件包

    #导出项目所需要的库文件目录
    pip freeze > requirements.txt
    
    #先将软件包下载到本地
    pip install --download='目录' -r requirements.txt
    
    #把安装包和目录清单上传到服务器
    
    #从服务器安装,--no-index是防止库有依赖,不按照顺序安装
    pip install --no-index -f file://目录 -r requirements.txt

      

    初学linux,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    GlowFilter发光效果
    投影滤镜的使用
    flash怎样删除库中没用的元件
    script中用php
    jQuery animate实现slideUp slideDown 的反向
    CSS !important 用法
    放新浪微博的箭头css写法
    json 取数据
    css hack 大全
    bubble 界面代码
  • 原文地址:https://www.cnblogs.com/forlive/p/11716628.html
Copyright © 2011-2022 走看看