Spacy Update msvc not found

别来无恙 提交于 2020-11-29 10:25:46

问题


I'trying to update spacy from version 2.0.18 to version 2.1.1. But every time I try to run the command

pip install spacy-nightly

or

pip install -U spacy==2.1.1

I just get

error: [WinError 2] System cannot find file specified
msvc
      py_compiler msvc

with a lot of unreadable output. Now I figured it has something to do with the C++ compiler spacy uses and I installed like every package I found at the Microsoft Visual Website but my problem didnt solve itself.

I really would appreciate some help!


回答1:


Most probably, you are on a 64-bit machine using a 32-bit python executable. Remove the 32-bit version of python and Install the 64 bit version of python it will work.

If you where working within a virtualenv, then delete the virtualenv and recreate it again after installing the 64-bit of python.



来源:https://stackoverflow.com/questions/55298505/spacy-update-msvc-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!