-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Python bindings cannot find msvcp140.dll - is there something I need to install? #2918
Comments
I've fixed the issue and am reporting it here in hopes of helping others or improving the usability of the software. |
If you remove the DLLs you copied into the llmodel_DO_NOT_MODIFY directory, and you install https://aka.ms/vs/17/release/vc_redist.x64.exe, does GPT4All import successfully? |
success. when I remove copy file, import error again. then I download and install your vc2015 runtime, it was ok. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks for confirming. That means the warning I'm adding in #2920 likely would have been helpful in your case, and should help other users in the future. |
The PR was merged and will be included in the next release of the python bindings. |
Thank you for your sense of responsibility. Happy for other users. |
Bug Report
python model gpt4all can't load llmdel.dll on win11 because no msvcp140.dll
Example Code
Steps to Reproduce
gpt4all-installer-win64-v3.2.1
pip install gpt4all
then error was happen:
how to fix
I found
llmodel.dll
exist. But It depends onmsvcp140.dll
. FromMicrosoft Visual C++ Redistributable Packages for Visual Studio 2015
.It loads my JetBrains Intellij IDEA's dynamic library
msvcp140.dll
(because the IDEA bin path is in system environment). But they do not match.I copy
msvcp140.dll
andmsvcp140_1.dll
fromgpt4all application
's lib pathC:\Users\Administrator\gpt4all\bin
togpt4all python module
's lib pathC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpt4all\llmodel_DO_NOT_MODIFY\build
. then fix.Expected Behavior
Expected the module can used or report what i need to do.
Your Environment
pip show gpt4all
): 2.8.2The text was updated successfully, but these errors were encountered: