pythonpip无法安装任何东西

pythonpip无法安装任何东西,python,pandas,unix,pip,installation,Python,Pandas,Unix,Pip,Installation,我正在尝试用pip安装pandas sudo pip install pandas 我得到了以下错误: ➜ ~ which python /usr/bin/python ➜ ~ python --version Python 2.7.10 ➜ ~ sudo pip install pandas The directory '/Users/bdisha/Library/Caches/pip/http' or its parent directory is not owned by th

我正在尝试用pip安装pandas

sudo pip install pandas
我得到了以下错误:

➜  ~ which python
/usr/bin/python

➜  ~ python --version
Python 2.7.10

➜  ~ sudo pip install pandas
The directory '/Users/bdisha/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/bdisha/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 pandas
  Could not fetch URL https://pypi.python.org/simple/pandas/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement pandas (from versions: )
No matching distribution found for pandas
我做错了什么

**

注意,在虚拟环境中也会发生同样的情况


**

我会尝试sudo chown-R您的用户名/Users/bdisha/Library/Caches/pip/http和chown-R您的用户名/Users/bdisha/Library/Caches/pip


这可能很有用

我会尝试sudo chown-R您的用户名/Users/bdisha/Library/Caches/pip/http和chown-R您的用户名/Users/bdisha/Library/Caches/pip


这可能很有用

这是由于最近Python.org网站对TLS的反对

答案是详细的

总而言之,升级pip如下:

curl https://bootstrap.pypa.io/get-pip.py | python
然后运行:

pip install pandas

这是由于最近对Python.org网站的TLS不推荐

答案是详细的

总而言之,升级pip如下:

curl https://bootstrap.pypa.io/get-pip.py | python
然后运行:

pip install pandas
在四处搜寻了很长时间后,我试了一下


搜索了很长时间后,我尝试了。

您可能需要更新您的pip版本
pip安装--升级pip
,然后运行
pip安装程序
是否确实要将软件包安装到苹果预先安装的Python 2.7中?如果是,您确定不想使用
virtualenv
?如果是这样,您应该清理目录权限(如错误消息中所述)并升级
pip
,然后一切都应该开始工作。@abarnert同样的错误发生在我的虚拟环境中。权限问题似乎是一个警告(您无论如何都应该修复它),因为此时安装没有停止。对于证书,可以吗?无论如何,请检查您的TLS版本:
python-c“导入json,urllib2;打印json.load(urllib2.urlopen)”https://www.howsmyssl.com/a/check“)['tls_version']”
那么您可能应该升级您的SSL库提供程序(OpenSSL?-如果是,请尝试
OpenSSL版本-a
-这只是一个测试,不知道如何在OSX上升级)@APorter1031我尝试升级pip,但同样的错误也发生了:你可能需要更新你的pip版本
pip安装--升级pip
,然后运行
pip安装程序
你确定要将软件包安装到苹果预安装的Python 2.7中吗?如果是,你确定不想使用
virtualenv
?如果是这样,您应该清理目录权限(如错误消息中所述)并升级
pip
,然后一切都应该开始工作。@abarnert同样的错误发生在我的虚拟环境中。权限问题似乎是一个警告(您无论如何都应该修复它),因为此时安装没有停止。对于证书,可以吗?无论如何,请检查您的TLS版本:
python-c“导入json,urllib2;打印json.load(urllib2.urlopen)”https://www.howsmyssl.com/a/check“)['tls_version']”
那么您可能应该升级您的SSL库提供程序(OpenSSL?-如果是,请尝试
OpenSSL版本-a
-这只是一个测试,不知道如何在OSX上升级)@APorter1031我尝试升级pip,但出现了相同的错误: