简体   繁体   English

如何为python 3.4,windows 7安装spacy?

[英]how to install spacy for python 3.4, windows 7?

I am trying to install the spacy python library for python 3.4 on windows 7. i keep getting install errors (the important-looking error messages are below). 我正在尝试在Windows 7上为python 3.4安装spacy python库。我一直在收到安装错误(重要的错误消息如下)。

I installed it for 2.7, but I can't seem to install it for 3.4. 我安装了2.7,但似乎无法安装3.4。

I tried doing: pip3.4 install -U spacy 我试着做:pip3.4 install -U spacy

But it does not seem to work. 但这似乎不起作用。 Does anybody have any ideas? 有人有什么想法吗? I'm trying to avoid crazy system surgery. 我正在努力避免疯狂的系统手术。 There must be some simple way to do this. 必须有一些简单的方法来执行此操作。

Warning: The nvcc binary could not be located in your $PATH. 警告:nvcc二进制文件找不到您的$ PATH中。 For GPU capability, either add it to your path, or set $CUDA_HOME 要获得GPU功能,请将其添加到您的路径,或设置$ CUDA_HOME

warning: no files found matching '*.cpp' under directory 'include'
warning: no files found matching 'buildbot.json'



***********************************************************
WARNING: One of the following dependencies is unresolved:
    ctypes >=1.0.1
    readline >=1.7.1
***********************************************************

error: Unable to find vcvarsall.bat 错误:找不到vcvarsall.bat


Cleaning up... Command C:\\Python34\\python.exe -c "import setuptools, tokenize; file ='C:\\Users\\joe\\AppData\\Local\\Temp\\pip_build_joe\\spacy\\setup.py';exec(compile(getattr(tokenize, 'open', open)( file ).read().replace('\\r\\n', '\\n'), file , 'exec'))" install --record C:\\Users\\joe\\AppData\\Local\\Temp\\pip-sxqy1vof-record\\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\\Users\\joe\\AppData\\Local\\Temp\\pip_build_joe\\spacy Storing debug log for failure in C:\\Users\\joe\\pip\\pip.log 清理...命令C:\\ Python34 \\ python.exe -c“导入setuptools,标记化; 文件 ='C:\\ Users \\ joe \\ AppData \\ Local \\ Temp \\ pip_build_joe \\ spacy \\ setup.py'; exec(compile (getattr(tokenize,'open',open)( file ).read()。replace('\\ r \\ n','\\ n'), file ,'exec'))“安装-记录C:\\ Users \\ joe \\ AppData \\ Local \\ Temp \\ pip-sxqyy1vof-record \\ install-record.txt --single-version-externally-managed-编译在C:\\ Users \\ joe \\ AppData \\ Local \\ Temp中失败,错误代码为1 \\ pip_build_joe \\ spacy在C:\\ Users \\ joe \\ pip \\ pip.log中存储失败的调试日志

In order for python to detect it you must place it in the following directory. 为了让python检测到它,您必须将其放在以下目录中。 C:\\Python27\\ or where ever python is located. C:\\Python27\\或python所在的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM