1083: Cannot open include file: 'basetsd.h'

pip install Scrapy 遇到的问题。

参考:https://stackoverflow.com/questions/23691564/running-cython-in-windows-x64-fatal-error-c1083-cannot-open-include-file-ba   

以下回答:

In case anyone is currently (2017) facing same error with visual C++ 2015 tools, launch setup again and also select windows 8.1 / 10 SDK depending upon your OS. This will fix basestd.h error.

If it is still not working, try launching build tools from: C:\Program Files (x86)\Microsoft Visual C++ Build Tools.

Another alternative would be, just install anaconda 2 or 3 (64 bit if also you don't want memory errors). It contains all the important packages prebuilt: sklearn, matplotlib, scipy, numpy, pandas and even web development frameworks such as flask.

  • 2
    I've chosen win8.1 option on Windows 7. pandas has been built fine. Thanks. – Winand Apr 1 '17 at 9:10
  • 1
    This helped me with 32bit Windows 10 for installing Geemusic requirements.txt. Worked after I've installed Windows 10 SDK. Thanks ;) – Volodymyr Kotylo Apr 9 '17 at 12:09
  • 1
    Specifically installing the Windows headers option has helped! – Tony Sepia Jul 16 '17 at 22:20
  •  
    2018. I can't believe it but installing win 10 sdk 64 fixed my basestd.h issue and let me install scikit-image – jonincanada Feb 13 at 11:31
  •  
    @jonincanada, next time your windows instllation blows up, remember that anaconda has prebuilt scikit-image :p . Not trying to advertise it but just saying its not worth the trouble. – Varun Garg Feb 14 at 7:19

 

posted @ 2018-07-28 18:47  长久悠悠  阅读(879)  评论(0编辑  收藏  举报