2017-06-20 85 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安裝熊貓'