python安装教程macmacM1安装pip2(python2.7)
curl bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
得到⼤致如下内容:
vb编写代码pc@pcMacBook-Pro Documents % python get-pip.pytitleist 917
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 Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: pypi.douban/simple
Collecting pip<21.0
Downloading pypi.doubanio/packages/27/79/8a850fe3496446ff0d584327ae44e7500daf6764ca1a382d2d02789accf7/pip-20.3.4-py2.py3-none-any.w      |████████████████████████████████| 1.5 MB 1.6 MB/s
新手怎样学电脑制表
Installing collected packages: pip
WARNING: The scripts pip, pip2 and pip2.7 are installed in '/Users/pc/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.4plsql配置数据源
pc@deMacBook-Pro Documents % pip  #⽆反应
然后执⾏:
sudo ln -s /Users/<;你的路径>/Library/Python/2.7/bin/pip /usr/local/bin/pip
最后测试:
dubbo通信框架有几种
pip -V

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。