學習python3的過程中,會使用到第三方庫,一般安裝有2種方法:
1.使用pip命令安裝
$ pip install pillow
使用該命令時修改超時時間:
$ pip install --default-timeout=1000 pillow
2、通過PyCharm 的Settings
File->Setting->Project Interpreter, 點擊+,輸入網址:
https://pypi.douban.com/simple
https://pypi.tuna.tsinghua.edu.cn/simple/
添加豆瓣或清華的鏡像就可以了
然後選擇 清華或豆瓣的 鏡像進行安裝:
很快就安裝成功了。