1.下載依賴失敗
現(xiàn)在公司換電腦,重新安裝python及pycharm,之前依賴需要重新下載
然后下載依賴失敗
錯誤如下
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

1630724391(1).jpg
解決方案:
windows設(shè)置 -> 網(wǎng)路和Internet -> 代理 -> 關(guān)閉代理服務(wù)器
開著代理導(dǎo)致,但是還是沒找到既開著代理,又不影響py的方案,求方案!

image.png
如果還是關(guān)閉的,則打開ie
右上角設(shè)置-》Internet選項(xiàng)-》連接-》局域網(wǎng)設(shè)置
將代理服務(wù)器下面溝去除-》確定