I’m trying to use the graphviz Python module and I’ve run into this problem: I pip installed it in my command prompt, but it’s not showing up in IPython. I have additionally a Python 3.5 (32-bit) interpreter where it IS showing up, but I’m trying to figure out how to have it installed so it works in IPython.
I’ve been recommended to include the sys.path for each of the interpreters.
Anyone have any ideas as to how I’d change it?
Advertisement
Answer
It is quite common to have such cases when there are multiple installations of python.
From the snapshot, we can infer that python 3.5 is default for the system and python 3.6 is installed for the specific user (Oliver Jr).
Installing any module without setting path variable will result in installing the module in default python (python 3.5)
Inorder to use the module in python 3.6, set the path variable as
SET PATH=C:UsersOliver JrAnaconda>;%PATH%;
Check if default python version is changed to python 3.6 by using
python --version
Then install the module using
pip install graphviz
You can also install using C:UsersOliver JrAnacondabinpip install graphviz