[問題] Pandas 讀取問題

看板Python作者 ( 短 維)時間4年前 (2020/03/28 15:05), 編輯推噓3(308)
留言11則, 2人參與, 4年前最新討論串1/1
大大們好 今天要跑pandas 安裝時候出現了以下 (base) Chang-Weide-MacBook-Air:~ vichuang$ pip3 install pandas Requirement already satisfied: pandas in ./anaconda3/lib/python3.7/site-packages (0.24.2) Requirement already satisfied: numpy>=1.12.0 in ./anaconda3/lib/python3.7/site-packages (from pandas) (1.16.2) Requirement already satisfied: python-dateutil>=2.5.0 in ./anaconda3/lib/python3.7/site-packages (from pandas) (2.8.0) Requirement already satisfied: pytz>=2011k in ./anaconda3/lib/python3.7/site-packages (from pandas) (2018.9) Requirement already satisfied: six>=1.5 in ./anaconda3/lib/python3.7/site-packages (from python-dateutil>=2.5.0->pandas) (1.12.0) 在這樣的情況下我發現pandas improt 都會失敗 想請教大大我該如何處理呢? 目前已經使用python3 的環境去跑 Pandas 安裝後用pip list 去查詢 版本是 pandas 0.24.2 先謝謝了!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 106.105.198.196 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1585379105.A.EB1.html

03/28 19:39, 4年前 , 1F
看起來你是用anaconda 預測會裝pandas 你要看你執行程
03/28 19:39, 1F

03/28 19:39, 4年前 , 2F
式的時候是在什麼環境
03/28 19:39, 2F

03/28 23:23, 4年前 , 3F
感謝大大 但我還是不知道怎麼處理掉這個問題QQ
03/28 23:23, 3F

03/28 23:28, 4年前 , 4F
先下which python找現在的interpreter在哪裡 再下whi
03/28 23:28, 4F

03/28 23:28, 4年前 , 5F
ch conda找anaconda路徑 再來可以設python預設路徑為
03/28 23:28, 5F

03/28 23:28, 4年前 , 6F
conda的路徑
03/28 23:28, 6F

03/28 23:44, 4年前 , 7F
補充一下 anaconda可能有多個環境 要用conda env lis
03/28 23:44, 7F

03/28 23:44, 4年前 , 8F
t看有哪些 不過我看你的是基本的base不用切環境
03/28 23:44, 8F

03/28 23:45, 4年前 , 9F
更正一下 which conda只能找conda的程式在哪裡 不能找
03/28 23:45, 9F

03/28 23:45, 4年前 , 10F
環境路徑
03/28 23:45, 10F

04/03 11:02, 4年前 , 11F
謝謝T大!! 我知道了~!!
04/03 11:02, 11F
文章代碼(AID): #1UVlSXwn (Python)