0

I want to use some modules in python with the software Spyder and I installed some modules like panda on my computer. One of the modules I installed is matplotlib_venn which I downloaded from pypi.python.org. I installed the same way as panda and it says the installation was succesfull but when I try to import the matplotlib_venn module as followed:

from matplotlib_venn import venn3, venn3_circles

This gives me the error:

runfile('C:/Users/gebruiker/.spyder-py3/temp.py', wdir='C:/Users/gebruiker/.spyder-py3')
Traceback (most recent call last):

  File "<ipython-input-18-20ac6695c8d8>", line 1, in <module>
runfile('C:/Users/gebruiker/.spyder-py3/temp.py', wdir='C:/Users/gebruiker/.spyder-py3')

  File "C:\Users\gebruiker\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile
execfile(filename, namespace)

  File "C:\Users\gebruiker\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/gebruiker/.spyder-py3/temp.py", line 1, in <module>
from matplotlib_venn import venn3, venn3_circles

ModuleNotFoundError: No module named 'matplotlib_venn'

If I import panda as pd there is no problem, can someone try to explain how this is possible or maybe connect me to the right forum where this is already discussed? I tried to find it on my own but my knowledge of this is not really good.

Thanks already

4
  • pip install matplotlib_venn Commented Nov 28, 2017 at 7:43
  • It gives: requirement already satisfied. Like I said I already installed it and I was able to install and use Panda but for some reason this wont work Commented Nov 28, 2017 at 7:45
  • I did that but if I try to import it, it still gives no module name. Is it possible that it is in a different location? I have the feeling that spyder reeds the modules out of my anaconda\lib\site-packages location but that the module is installed in python\python36\lib\sitepackages location Commented Nov 28, 2017 at 7:57
  • so simple and yet it works, thank you for helping me through this silly problem Commented Nov 28, 2017 at 8:05

1 Answer 1

1

It seems that the installation location is not where python is expecting the module files. a quick work around it to just copy the files and directories to the expected location, in this case it seems to be looking for the files in:

C:\Users\gebruiker\Anaconda3\lib\site-packages\spyder

So just copy the files there from the python lib directory.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.