-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
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? Sign in to your account
C extension not loaded, training will be slow. Install a C compiler and reinstall gensim for fast training. #2572
Comments
Missing information -- we'll have to close this issue unless you fill in the issue template fully. |
hi, have you solved this problem? I had the same problem ,thanks! |
@piskvorky in 2015,the solution to "C extension not loaded, training will be slow" was to use version 0.15 of scipy,but the python I'm using now is 3.7,and version 0.15 of scipy can no longer be used on python 3.7.How can I solve this problem now? Please give me some advice. Thanks |
Issue template not followed, information still missing. @guo18306671737 how did you install gensim? Did the installation process print any warnings or errors? |
@piskvorky thank you very much for your reply! I looked at #351 and #2508, I install genism by 'pip install gensim-3.8.0-cp37-cp37m-win_amd64.whl',and the installation procession was successful . I installed C++,but it didn't seem to work. |
Thanks, that helps. So you installed gensim 3.8 with Can you provide the rest of the information: import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import gensim; print("gensim", gensim.__version__)
from gensim.models import word2vec;print("FAST_VERSION", word2vec.FAST_VERSION) |
There was probably an error during pip-installation's attempt to build the DLL. But I'm just guessing; it's been almost a decade since I used Windows for any development. I suspect the default tools on Windows can't build everything on demand, using the default configs/sources, as easily as on the Unix/Linux-y distributions. For people who can't switch away from Windows, I think |
I don't think anything's being built on demand. We're distributing binary wheels. |
@gojomo Do you mean that conda installs genism like this ,and it still doesn't work. |
@piskvorky I thought Windows-wheels were a separate option a user had to choose somehow, and that a default |
@guo18306671737 Not sure what you mean by "still doesn't work". Is that all the output of the command? What code is then run and generates what message? (It's be helpful to show it all, and ideally as quoted text rather than screenshots.) |
So @guo18306671737 's |
@guo18306671737's "C extension not loaded" error message seems to come from an Anaconda-derived path. But the shown "successful" install is just a |
@gojomo @piskvorky It's amazing. I managed to install genism again through conda in anaconda, and I'm not sure which step worked, thanks very much! |
Sounds like problem was solved, closing. |
Hello, |
@alex-arkhipov I think your problem is related to #2600 That's an entirely different issue. |
Can u help me out? Same issue |
Open a new Github ticket, and fill it in fully: your Python version, operating system version, version of Gensim you're installing, etc. Then we can help you. |
How to solve this User Warning Error in Windows 10. I am running code with Command Prompt and writing it in Notepad++.
C extension not loaded, training will be slow. Install a C compiler and reinstall gensim for fast training.
Kindly write such commands that can be executed in cmd.
The text was updated successfully, but these errors were encountered: