Python 笔记

安装python

查看版本检测是否已经安装

python --version

macOS 使用 Homebrew 更新 Python

brew update
brew upgrade python

安装 pip

pip
```ion
sudo easy_install pip

或者

python get-pip.py

升级 pip 确保最新版

pip install --upgrade pip

查看 pip 版本信息

pip --version

卸载 pip

sudo pip uninstall pip

查看 pip 版本,检测是否卸载成功

pip 安装报错

大概报错“Python.framework/Versions/3 not on PATH. Consider adding this directory to PATH”

解决方法

export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.8/bin"

相关资料

pip3

检测是否安装 pip3

pip3

查看 pip3 版本

```bsh pip3 –vers


回到顶部

Copyright © 2017-2024 1px.run 像素教程 Distributed by an MIT license.

Site updated at 2025-05-22 07:59