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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律