Python 在OS X上安装pip
我想在OSX上安装pip 所以我下载并安装了Python3.4,然后使用PythonPackagingAuthority提供的脚本安装了pip;但是当我运行pip时,我得到了一个未找到的命令Python 在OS X上安装pip,python,macos,amazon-web-services,pip,Python,Macos,Amazon Web Services,Pip,我想在OSX上安装pip 所以我下载并安装了Python3.4,然后使用PythonPackagingAuthority提供的脚本安装了pip;但是当我运行pip时,我得到了一个未找到的命令 MacBook-Pro-de-paquirrin:Home paquirrin$ sudo curl -O https://bootstrap.pypa.io/get-pip.py Password: Sorry, try again. Password: % Total % Received %
MacBook-Pro-de-paquirrin:Home paquirrin$ sudo curl -O https://bootstrap.pypa.io/get-pip.py
Password:
Sorry, try again.
Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1487k 100 1487k 0 0 783k 0 0:00:01 0:00:01 --:--:-- 783k
MacBook-Pro-de-paquirrin:Home paquirrin$ sudo python3 get-pip.py
The directory '/Users/paquirrin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/paquirrin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 718kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 1.6MB/s
Installing collected packages: pip, wheel
Found existing installation: pip 6.0.8
Uninstalling pip-6.0.8:
Successfully uninstalled pip-6.0.8
Successfully installed pip-8.1.1 wheel-0.29.0
MacBook-Pro-de-paquirrin:Home paquirrin$ sudo pip install awsebcli
sudo: pip: command not found
不知道,但似乎完全涵盖了你的话题
另外:您可以在本地安装
pip
。在执行curl
命令的文件夹中尝试bin/pip
。我发现的最简单的方法是使用自制软件,它也安装了所有基本的python和pip。但也可以随意使用macports
brew install python
如果您需要更多帮助,我使用了帖子中的答案:sudo pip3安装awsebcli是否有效?在不使用brew的情况下重复解决方案问题:sudo easy_install pip大多数在python安装时自动安装<代码>pip2安装应该可以正常工作。谢谢。这对我很有用:)在尝试制作alias、brew安装python、sudo python get-pip.py之后,最好的答案是sudo easy_install pip