[問題] 無法使用pip install reqirement

看板Python作者 (LJC)時間8年前 (2017/07/10 15:05), 8年前編輯推噓0(005)
留言5則, 3人參與, 最新討論串1/1
大家好 我的環境是 mac 10.12.5 / iTerm2 / python3 我在使用python的virtualenv時 要安裝requirement.txt的東西 下了以下指令 $ pip install -r requirements.txt 輸入之後他會跑條 但是結束後 $pip freeze 是空的 但是複製requirements.txt中的東西(ex:appdirs==1.4.0) 然後自己 $pip install appdirs==1.4.0 跑完之後 $ pip freeze 就有顯示了 請問我該如何以正確的姿勢使用pip install 安裝requirements.txt -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.136.167.144 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1499670344.A.3C2.html

07/10 15:44, , 1F
可以看一下你的requirements.txt裡面的樣子嗎?
07/10 15:44, 1F

07/10 15:44, , 2F
(順帶一提 是"知識"吧?XD
07/10 15:44, 2F

07/10 16:03, , 3F
那句只是在捏它成句「一定是我打開的姿勢不對」吧
07/10 16:03, 3F
requirements.txt : https://github.com/mirumee/saleor/blob/master/requirements.txt ※ 編輯: redbxh (114.136.167.144), 07/10/2017 16:08:04 $ pip install -r requirements.txt 會出現 Collecting appdirs==1.4.0 (from -r requirements.txt (line 7)) Using cached appdirs-1.4.0-py2.py3-none-any.whl 這樣的訊息 但不install ※ 編輯: redbxh (114.136.167.144), 07/10/2017 16:10:42

07/10 21:59, , 4F
這個是 pip-compile 的格式, 要用 pip-sync 裝
07/10 21:59, 4F

07/10 22:00, , 5F
文章代碼(AID): #1POoT8F2 (Python)