1. 程式人生 > >python中安裝clr

python中安裝clr

直接在命令列中錄入

pip install pythonnet

會有一個ssl錯誤提示

...Could not fetch URL https://pypi.python.org/simple/pythonnet/: There was a problem confirming the ssl...

 

 

只好下載後再安裝,下載地址

https://pypi.org/simple/pythonnet/

我的python是2.7的32位,於是下載了

pythonnet-2.3.0-cp27-cp27m-win32.whl

直接放在D盤,在命令列轉到D盤,執行以下命令

pip install pythonnet-2.3.0-cp27-cp27m-win32.whl

安裝成功,可以import clr啦:)