I am using anaconda
. I have used a code to display graph (just copied the code) and am trying to make it run on my machine. I have installed the pydot
class using:
pip install pydot
but I get the following error
File "C:/Users/ASMGX/Desktop/Python/untitled0.py", line 33, in <module>
import pydot
ModuleNotFoundError: No module named 'pydot'
So I tried re-installing using conda
conda install -c https://conda.binstar.org/sstromberg pydot
Still I get the same error? What is that I am doing wrong?
If you are using Anaconda you can just install the pydot package trough the Anaconda navigator.
If you then also run your IDE / notebook from Anaconda from the same environment you are sure you are using the same environment to run the script as for which you installed pydot.
I expect Python still can't find the package because it is installed in a environment different from the one you are running the script in.