Python produces: OSError: [WinError 193] %1 is not a valid Win32 application, but only with activate_this.py

前端 未结 2 1053
花落未央
花落未央 2020-12-22 12:54

This is presumably the same as Python produces: OSError: [WinError 193] %1 is not a valid Win32 application However, that has no answers, and I have additional details for m

2条回答
  •  鱼传尺愫
    2020-12-22 13:22

    Another thing might have happened. VS code automatically searches for the numpy and other packages from predefined OS locations. It might have found out 32 bit version of numpy instead of a 64 bit version. Fix: Uninstall numpy from all OS locations * In VS code terminal. Type pip uninstall numpy or conda uninstall numpy (If you use Anaconda) * Restart VS code * Voila! (Reinstall numpy if the problem persists)

提交回复
热议问题