Ads 468x60px


25 5月, 2018

pip 安裝套件時出現 Cannot uninstall 'XXXX'


但 pip 很腦殘又砍不掉,所以只好手動砍了

Cannot uninstall 'chardet'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

只要找到安裝的 package 路徑,通常在錯誤訊息可得到位置如上

# 切換到該 package
 pushd /usr/lib/python2.7/dist-packages/

# 砍掉不相容的 package 
 rm -rf urllib3*

# 重新執行安裝就過了
sudo pip install -U azure-iot-edge-runtime-ctl

0 意見:


Blogger Templates