Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Have installed and uninstalled miniconda/anaconda on my computer multiple times. Currently running the latest version of anaconda.
When trying to install spacy into R using spacy_install() I repeatedly get the error "Error: Error 1 occurred installing packages into conda environment spacy_condaenv" and don't know how to fix it.
The text was updated successfully, but these errors were encountered:
Could you provide sessionInfo() output?
Sorry, something went wrong.
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
 LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252
 LC_NUMERIC=C LC_TIME=English_United Kingdom.1252
attached base packages:
 stats graphics grDevices utils datasets methods base
other attached packages:
loaded via a namespace (and not attached):
 sentimentr_2.6.1 compiler_3.5.2 qdapRegex_0.7.2 tools_3.5.2 bindrcpp_0.2.2 glue_1.3.0 yaml_2.2.0 Rcpp_1.0.0
 lexicon_1.1.3 textclean_0.9.3 syuzhet_1.0.4 data.table_1.12.0 rlang_0.3.1 bindr_0.1.1
I am not sure what exactly is the issue, but let's try the following. In a command prompt (not in R):
conda remove --name spacy_condaenv --all
conda create --name spacy_condaenv python=3.6
pip install --ignore-installed --upgrade spacy
python -m spacy download en
If you run through all of them without an error, you should be able to spacy_initialize().
Thank you for your help!
I got some errors at step 4:
Failed building wheel for ujson
Failed building wheel for cytoolz
Command "C:\Users\Liora\Anaconda3\envs\spacy_condaenv\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Liora\\AppData\\Local\\Temp\\pip-install-v5qce9t8\\cytoolz\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Liora\AppData\Local\Temp\pip-record-p30pkxf3\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Liora\AppData\Local\Temp\pip-install-v5qce9t8\cytoolz\
Do you have a proper version of Visual C++? For Windows systems, you have to install it before compiling things.
This might also informative:
Ah no, I somehow missed that requirement!
Thank you so much for your help! After I installed that, spacy_install() worked directly from R. :D
I tried the above steps, but when I run spacy_initialize in R, I get the following error:
Error in py_run_file_impl(file, local, convert) :
ModuleNotFoundError: No module named 'spacy'
Any ideas what I should do?
Successfully merging a pull request may close this issue.