2017-06-20 86 views
0
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上无法访问。所以起初,我删除了旧的熊猫文件。并试图再次安装,但基本上是当我尝试做pip安装熊猫或sudo pip安装熊猫时发生的情况。而且我也不能输入熊猫。我真的很感谢帮助。谢谢!无法安装熊猫

回答

0

我不确定为什么当我尝试建议的答案时,我收到了所有这些错误消息。但最终为我工作的是当我只是做'pip3安装熊猫'