-
Notifications
You must be signed in to change notification settings - Fork 652
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
ImportError: Failed to import pydot
. Please install pydot
. For example with pip install pydot
.
#69
Comments
In addition to pydot and graphviz install pydotplus. This should solve your problem. Edit: I overlooked that you already installed pydotplus, my bad. Try uninstalling all pydot related modules and graphiviz, then reinstall in the following order:
For me, this has done the trick on both a Linux and Windows machine. |
@lohitakshy Please refer to #7 |
Try this :)
|
Just like @anouar1991 said. What I did are followed: That's worked for me. |
I followed the advice of uninstalling and reinstalling pydot + pydotplus and that successfully solved the issue on my Windows 10 machine using Anaconda 3. |
In windows system, also install graphviz software. And add the software bin directory to the system's path. Seems that the package was written for *nix system. So in windows, assign it to be an |
@swun90 This is what worked for me. Thank you :-) |
On Ubuntu 16.04, I try with: |
@Hippyu it worked for me too 😫 |
@ghost this works perfectly |
My system is MAC, and I have the same problem. import os |
without having to restart my notebook I did this
|
For those who wants to install pydot in their virtual environment on their Ubuntu machine, I did it by this:
you can check it out typing 'pip list' in terminal |
@jmikedupont2 thanks it worked after a struggle of 1 hr I found this worked for me |
from keras.utils import plot_model
plot_model(model)
Showing this error.
ImportError: Failed to import
pydot
. Please installpydot
. For example withpip install pydot
.(base) C:\Users\lohit>pip install pydot
Requirement already satisfied: pydot in c:\users\lohit\anaconda3\lib\site-packages (1.2.4)
Requirement already satisfied: pyparsing>=2.1.4 in c:\users\lohit\anaconda3\lib\site-packages (from pydot) (2.2.0)
(base) C:\Users\lohit>pip install pydotplus
Requirement already satisfied: pydotplus in c:\users\lohit\anaconda3\lib\site-packages (2.0.2)
Requirement already satisfied: pyparsing>=2.0.1 in c:\users\lohit\anaconda3\lib\site-packages (from pydotplus) (2.2.0)
(base) C:\Users\lohit>pip install pydot_ng
Requirement already satisfied: pydot_ng in c:\users\lohit\anaconda3\lib\site-packages (1.0.0)
Requirement already satisfied: pyparsing>=2.0.1 in c:\users\lohit\anaconda3\lib\site-packages (from pydot_ng) (2.2.0)
(base) C:\Users\lohit>pip install graphviz
Requirement already satisfied: graphviz in c:\users\lohit\anaconda3\lib\site-packages (0.9)
Still, it's showing an error? Kindly help me with this issues.
The text was updated successfully, but these errors were encountered: