• python + pip


    python

    由荷兰人Guido van Rossum于1989年发明的一种解释型、面向对象、动态数据类型的交互式高级程序设计语言(脚本语言),源代码遵循GPL(GNU General Public License)协议
    设计哲学:优雅、明确、简单
    初识Python,关于Python的前期预热可参见:Python生态系统入门

    • 可移植性、跨平台,可扩展、可嵌入,“脚本化”
    • 支持互动模式
    • 强制用空白符(White Space)作为语句缩进

    推荐书籍

    • Mark Lutz -《Learning Python》
    • Swaroop, C.H. - A Byte of Python 之《简明Python教程》
    • Magnus Lie Hetland -《Python基础教程》
    • Wesley Chun -《Python核心编程》
    • Toby Segaran -《集体智慧编程》

    菜鸟教程 | Python 基础教程
    Python之路Python学习笔记系列
    Python基础Python快速教程
    循序渐进学PythonPython Day系列

    pip

    C:Userssunqh下新建文件夹pip,然后新建文件pip.ini,配置镜像

    [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    trusted-host = pypi.tuna.tsinghua.edu.cn
    

    常用命令备用

    pip install pkgName
    pip install pkgName -i 镜像地址 //临时使用
    

    问题解决

    若安装时出现报错:

    Command "python setup.py egg_info" failed with error code 1 in C:Usersxxx
    You are using pip version 18.1, however version 20.2 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command
    

    按提示即可解决

    pip install --upgrade setuptools
    python -m pip install --upgrade pip
    

    若还是报错:

    ERROR: Command errored out with exit status 1:
     command: 'd:downsoftpythonpythonpython.exe ...
    Complete output (41 lines):
    WARNING: The wheel package is not available.
    

    按提示即可解决pip3 install wheel

  • 相关阅读:
    Shell脚本编程-02-----shell编程之条件语句
    ELK 简介
    Linux 下的网卡文件配置
    Tomcat 简介
    Docker 基本操作
    zabbix 介绍
    CentOS 上搭建 Kubernetes 集群
    Docker 简介
    yum 源的配置安装
    Docker 入门
  • 原文地址:https://www.cnblogs.com/wjcx-sqh/p/13428231.html
Copyright © 2020-2023  润新知