Forums

Problem with matplotlib

Dear Team:

I have a problem with my virtualenv and this library the page that use this library show me the following error "ModuleNotFoundError No module named 'matplotlib" I have it installed in the server but not in my virtualenv I tried to install it again but I have problem with the instalation, the bash console show me this message "Defaulting to user installation because normal site-packages is not writeable"

I also tried to install it into viertualenv folder with same result I also try to install it with this command "python -m pip install -U matplotlib" this install it, the libray again but not in my virtualenv folder

My last chance was to install it indicating the folder in which I want install the library but, unfortunately don't work for folder permission ( i dont know why because give to all folder 777 permision)

would you mind telling me how to install the library in my virtualenv

regards

You need to activate the virtualenv before you try to install anything into it: https://help.pythonanywhere.com/pages/Virtualenvs/

Thank you Glenn for you soon answer I could resolve it with your answer best regards