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$
嗨,我刚开始学习编程和数据科学。我在我以前的python版本上有熊猫,但在python 3.6上无法访问它。所以起初,我删除了旧的pandas文件。并尝试再次安装,但这基本上是当我尝试做pip安装pandas或sudo pip安装pandas时发生的事情。我也不能导入大熊猫。我真的很感激帮助。谢谢!
答案 0 :(得分:0)
当我尝试建议的答案时,我不确定为什么会收到所有这些错误消息。但最终为我工作的是我刚刚做了pip3安装大熊猫'