【发布时间】:2018-04-25 14:45:45
【问题描述】:
我使用自制软件安装了 python3,但它没有安装 pip3,或者我应该说它已安装但它无法识别命令?
这是我所做的:
brew install python3
这安装了python3,但最后抛出一个错误,说它无法链接python3并提示我运行
brew link python3
链接安装,但这会引发另一个错误:
Linking /usr/local/Cellar/python3/3.6.3... Error: Permission denied @ dir_s_mkdir - /usr/local/lib
有谁知道如何解决这个问题? 当我跑步时:
brew info python3
上面写着:
==> Caveats
Pip, setuptools, and wheel have been installed. To update them
pip3 install --upgrade pip setuptools wheel
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.6/site-packages
See: https://docs.brew.sh/Homebrew-and-Python.html
这让我觉得 pip3 已安装但无法识别。任何帮助表示赞赏。
信息:
操作系统 => MacOS High Sierra 10.13.1
pip3 install twilio
-bash: pip3: command not found
【问题讨论】:
-
我的直觉是你不需要
pip3,因为pip会根据你的环境选择你当前活动的python版本。 -
我的
pip3在这里/usr/local/bin/pip3
标签: python macos python-3.x pip homebrew