1. windows 以及 Linux的pip 安裝
windows:
如果python3版本大於3.4 或者 python2的版本大於2.7.9,那麼pip已經是默認安裝好了的。需要將python和python/scripts 添加到環境變量中。之後可以使用pip2 install進行python library的下載。
Linux:
Python3 需要使用sudo apt install python3-pip 進行安裝。
2. Pip install 安裝python包
3. Pip list 將所有的包羅列出來
4. pip安裝requirement.txt
pip install -r requirements.txt
2. pip 遇到Time out 錯誤解決
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000049701D0>, 'Connection to pypi.anaconda.org timed out. (connect timeout=15)')': /pypi/simple/whois/
SOLU:
Hi, I believe you are behind corporate firewall
Ex: Try this command while installing via pip
pip install --proxy=user:pass@server:port <package Name>