• mac 安装pip2


    Mac默认安装python2.7. 

    但是没有pip2

    =============

    开始安装:

    sudo curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
    python2 get-pip.py
    ➜  site-packages python2 get-pip.py
    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.
    Defaulting to user installation because normal site-packages is not writeable
    Collecting pip<21.0
      Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
         |████████████████████████████████| 1.5 MB 167 kB/s 
    Installing collected packages: pip
      WARNING: The scripts pip, pip2 and pip2.7 are installed in '/Users/dzq/Library/Python/2.7/bin' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed pip-20.3.4

    从输出日志可以看到几个信息:

    python2.7 已经过时了。 

    安装了pip-20.3.4. 

    安装路径: /Users/dzq/Library/Python/2.7/bin

    但是不在PATH环境

    ================

    为了让pip命令生效,现在要做的事情

    sudo cp ~/Library/Python/2.7/bin/pip /usr/local/bin/pip

    在任意路径下执行 pip -V

    ➜  ~ pip -V
    pip 20.3.4 from ~/Library/Python/2.7/lib/python/site-packages/pip (python 2.7)

    pip2 至此安装成功

  • 相关阅读:
    Centos6.5安装Oracle11.2.0.4 RAC(完整版)
    VMware搭建Oracle 11g RAC测试环境 For Linux
    Linux CentOS命令行界面字体重复问题解决记录
    SSH公钥认证(码云)
    Git 上传本地仓库到码云
    Git 相关工具及教程地址
    jdk8 新特性stream().map()
    PowerDesigner 使用记录
    IDEA 中.properties文件中文自动转Unicode编码及乱码问题
    idea在Maven Projects中显示灰色的解决办法
  • 原文地址:https://www.cnblogs.com/dzqdzq/p/14987525.html
Copyright © 2020-2023  润新知