无法在 mac 上 pip 安装 jupyter

oha*_*ain 5 python macos pip python-2.7

我正在尝试在mac上安装jupyter,我知道mac附带安装了python版本但我还安装了brew并通过brew安装了python。

当我检查 python 位置时,我得到:
which python /usr/bin/python

当我检查 pip 位置时,我得到:
which pip
/usr/local/bin/pip

当我尝试安装 jupyter 时:
pip install install 经过长时间的安装,它尝试删除它想要升级的 python 包并失败: 在此输入图像描述 关于尝试卸载 dateutil。
我认为是 mac 软件包。我尝试使用 sudo,没有任何变化。
据我所知,因为文件是不可变的。
试图用以下方法删除不可变的:
chflags uchg
不用找了。

我还尝试使用虚拟环境,使用:
sudo pip install virtualenvwrapper
但该 pip 尝试卸载另一个 python 文件夹。
有什么建议么?
谢谢

tdu*_*ube 0

Mac 上“预装”的 Python 位于/usr/bin/python. 我认为您需要更改环境变量中条目的顺序,PATH如此处所述(默认情况下是 python homebrew)。PATH设置哪个文件取决于您使用的 shell。