1

I have error

No module named 'matplotlib'

I tried:

sudo apt install python3.7 matplotlib
sudo apt install python3.7-matplotlib
pip install python3.7-matplotlib

result:

No matching distribution found for python3.7-matplotlib

Thank you.

4
  • The recommended way to install matplotlib (under the condition that you have python 3.7 installed already) is python -mpip install matplotlib. Commented Mar 31, 2019 at 14:26
  • Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-X4eV03/matplotlib Commented Mar 31, 2019 at 14:29
  • Setuptools might be outdated. Try python -mpip install --upgrade setuptools first Commented Mar 31, 2019 at 14:57
  • Could not install packages due to an EnvironmentError: [Errno 13] Operace zamítnuta: '/usr/local/lib/python2.7/dist-packages/easy_install.pyc' Consider using the --user option or check the permissions. Why is there python2.7? I dindn't install it. Commented Mar 31, 2019 at 15:35

1 Answer 1

1
sudo pip3.7 install matplotlib
Sign up to request clarification or add additional context in comments.

3 Comments

- save this on your computer get-pip.py - Navigate to download folder - run sudo python3.7 get-pip.py - After installation please run the pip3.7 command
ModuleNotFoundError: No module named '_ctypes'
sudo apt-get install libffi-dev

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.