Visual Studio 2017 + Python3.6安裝scipy庫
阿新 • • 發佈:2017-10-11
load 安裝python pip studio 命令行 pytho 訪問 測試python download
Windows10下安裝scipy很麻煩,直接在命令行下使用pip install scipy無法安裝,但可以借助VS2017的集成環境來安裝。
(1)首先在Visual Studio Installer中選擇Python相關組件,讓Visual Studio自行安裝Python環境
(2)VS環境安裝完成後,新建一個python工程,並在【Python環境】視圖中可以看到當前系統中的python環境。
(3)如上圖所示,選擇【在PowerShell中打開】,打開PowerShell窗口,可以輸入命令,測試python環境。如果環境沒有問題,則訪問http://www.lfd.uci.edu/~gohlke/pythonlibs/,下載Scipy並安裝。
(4)當前我安裝的環境是Python3.6 64bit,則選擇scipy-1.0.0rc1-cp36-cp36m-win_amd64.whl進行下載。下載完畢後,在PowerShell中輸入命令pip install C:\Users\lzhuc\Downloads\scipy-1.0.0rc1-cp36-cp36m-win_amd64.whl進行安裝。
如上圖所示,scipy安裝成功。
Visual Studio 2017 + Python3.6安裝scipy庫