zoukankan      html  css  js  c++  java
  • Python——安装与命令备忘

    https://www.python.org/downloads/release/python-2718/

    sudo pip uninstall pip

    curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py

    sudo python get-pip.py

    sudo easy_install pip

    python -m pip install --upgrade pip

    pip --version

    python --version

    vim ~/.bash_profile
    source ~/.bash_profile
    export PIP_PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin
    export PATH=$PIP_PATH:$PATH

    which python
    which pip

    pip list
    pip list --path /Users/admin/Library/Python/2.7/lib/python/site-packages/
    pip list --path /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    pip list --path /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/

    pip install click==5.1

    pip install 安装目录问题
    python -m site


    bogon:newres admin$ pip list --path /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
    Package Version
    ------------ -------
    Cheetah 2.4.4
    click 7.1.2
    cloudpickle 1.3.0
    configparser 4.0.2
    doit 0.29.0
    et-xmlfile 1.0.1
    jdcal 1.4.1
    MacFSEvents 0.8.1
    Markdown 2.3.1
    openpyxl 2.6.4
    Pillow 6.2.2
    pip 20.3.4
    PyYAML 3.11
    setuptools 41.2.0
    six 1.16.0

  • 相关阅读:
    类的使用(基础)
    <cf>Two Problems
    <cf>Walking in the Rain
    一些程序的整理
    <codeforces>Little Elephant and Sorting
    HDU 1172 猜数字(枚举)
    HDUOJ 1879 继续畅通工程
    error C2679: binary '<<' : no operator defined which takes a righthand operand of type 'class std::basic_s
    HDUOJ 1198 Farm Irrigation(并查集)
    HDU 1222 Wolf and Rabbit
  • 原文地址:https://www.cnblogs.com/xingchong/p/14987073.html
Copyright © 2011-2022 走看看