[英]Can't install Spacy on Windows 7 32-bit
Environment: Windows 7 32-bit (SP1), Python 3.7.3, Microsoft Visual C++ 14.20.27508 (installed from Build Tools) 环境:Windows 7 32位(SP1),Python 3.7.3,Microsoft Visual C ++ 14.20.27508(从Build Tools安装)
When I try to install spacy using (pip install -U spacy), after several minutes of message "Installing build dependencies..." I get an error "MS Visual C++ 14 is required" and the installation of Spacy is terminated. 当我尝试使用(pip install -U spacy)安装spacy时,在几分钟的消息“安装构建依赖项...”后,我收到错误“需要MS Visual C ++ 14”并终止Spacy的安装。
What am I supposed to do to fix the problem? 我应该怎么做才能解决这个问题? Many thanks in advance.
提前谢谢了。
Many scientific packages for Python on Windows have problems installing through pip
because most of the time, the supported compiler is not installed. 许多适用于Windows的Python科学软件包都存在通过
pip
安装的问题,因为大多数情况下,未安装支持的编译器。
Instead of fighting with your system and figuring out what compiler you need and where to get it, I just go to Christoph Gohlke's website as he volunteers his time to build the packages properly in a Windows environment and releases the wheels that you can install for pip
: https://www.lfd.uci.edu/~gohlke/pythonlibs/#spacy 我没有和你的系统打架,弄清楚你需要什么样的编译器以及在哪里得到它,我只是去Christoph Gohlke的网站,因为他自愿花时间在Windows环境中正确构建软件包并释放你可以为
pip
安装的轮子: https : //www.lfd.uci.edu/~gohlke/pythonlibs/#spacy
Choose the Python 3.7, 32-bit version, download it and install the wheel yourself. 选择Python 3.7,32位版本,下载并自行安装。 In your case, you'll need the
spacy‑2.1.3‑cp37‑cp37m‑win32.whl
file. 在您的情况下,您将需要
spacy‑2.1.3‑cp37‑cp37m‑win32.whl
文件。 Download it, and just do: 下载它,然后做:
pip install spacy‑2.1.3‑cp37‑cp37m‑win32.whl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.