Python 无法安装熊猫

Python 无法安装熊猫,python,pandas,Python,Pandas,嗨,我刚开始学习编程和数据科学。我在以前的python版本中有pandas,但在Python3.6上无法访问它。因此,首先,我删除了旧的熊猫文件。并尝试再次安装,但这基本上就是我尝试执行pip安装pandas或sudo pip安装pandas时发生的情况。我也不能进口熊猫。我真的很感激你的帮助。谢谢大家! 当我尝试建议的答案时,我不确定为什么会收到这些错误消息。但最终对我有效的是当我只做“pip3安装熊猫”的时候 Swans-MacBook-Pro:~ swan_919$ sudo pip in

嗨,我刚开始学习编程和数据科学。我在以前的python版本中有pandas,但在Python3.6上无法访问它。因此,首先,我删除了旧的熊猫文件。并尝试再次安装,但这基本上就是我尝试执行pip安装pandas或sudo pip安装pandas时发生的情况。我也不能进口熊猫。我真的很感激你的帮助。谢谢大家!

当我尝试建议的答案时,我不确定为什么会收到这些错误消息。但最终对我有效的是当我只做“pip3安装熊猫”的时候

Swans-MacBook-Pro:~ swan_919$ sudo pip install pandas
The directory '/Users/swan_919/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/swan_919/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.
Requirement already satisfied: pandas in /Library/Python/2.7/site-packages
Requirement already satisfied: pytz>=2011k in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from pandas)
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from pandas)
Requirement already satisfied: numpy>=1.7.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from pandas)
Swans-MacBook-Pro:~ swan_919$