numpy 安裝錯誤

來源:互聯網
上載者:User

1、”unable to find vcvarsall.bat“錯誤。

Python 2.7 會搜尋 Visual Studio 2008.
 如果你電腦上沒有這個版本的話,比如只有:
 1.Visual Studio 2010,在cmd裡面執行:
SET VS90COMNTOOLS=%VS100COMNTOOLS%
2. Visual Studio 2012 的話:
SET VS90COMNTOOLS=%VS110COMNTOOLS%
以此類推:
3. Visual Studio 2013 的話:
SET VS90COMNTOOLS=%VS120COMNTOOLS%
4. Visual Studio 2003 的話:
SET VS90COMNTOOLS=%VS80COMNTOOLS%

2、RuntimeError: Broken toolchain: cannot link a simple C program

在msvc9compiler.py中,把minfo的指派陳述式更改為minfo=None,即可。msvc9compiler.py檔案在目錄:

C:\Python27\ArcGIS10.3\Lib\distutils

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.