【发布时间】:2014-06-03 20:05:29
【问题描述】:
我正在运行 OSX 标配的 Python 2.7.5 版本。
我尝试使用 sudo easy_install pip AND python get-pip.py
安装 pip当我尝试安装 pip 时,easy_install 出现以下错误:
Processing pip
Running setup.py -q bdist_egg --dist-dir /Users/XXXX/pip/egg-dist-tmp-VtRwku
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
no previously-included directories found matching 'tasks'
pip 1.6.dev1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
error: /usr/local/bin/pip: No such file or directory
当我尝试使用 get-pip.py 安装 pip 时
Requirement already up-to-date: pip in /Library/Python/2.7/site-packages/pip-1.6.dev1-py2.7.egg
- 当我输入 pip help 时没有任何显示
【问题讨论】:
-
我已经安装了设置工具和 Xcode 命令行开发工具
-
我的目标是安装包(目前是rpy2和pyodbc)
-
pip 1.6.dev1 is already the active version in easy-install.pth检查您是否没有安装任何以前的 pip 版本。ls -la /usr/local/bin的输出是什么? -
@Salem
lrwxr-xr-x 1 XXX admin 30 Jun 2 12:55 pip -> ../Cellar/python/2.7.7/bin/piplrwxr-xr-x 1 XXX admin 31 Jun 2 12:55 pip2 -> ../Cellar/python/2.7.7/bin/pip2lrwxr-xr-x 1 XXX admin 33 Jun 2 12:55 pip2.7 -> ../Cellar/python/2.7.7/bin/pip2.7 -
当我去 /Cellar/python/... 这些文件不存在
标签: python python-2.7