• 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

  • 相关阅读:
    Python 面向对象补充
    Python 多态
    Web_php_unserialize-攻防世界XCTF
    sqli-labs之Page-4
    sqli-labs之Page-3
    sqli-labs之Page-1
    DVWA-反射型XSS
    DVWA-File Upload
    DVWA-File Inclusion
    DVWA-CSRF
  • 原文地址:https://www.cnblogs.com/xingchong/p/14987073.html
Copyright © 2020-2023  润新知