Sunday, May 12, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2144  / 2 Years ago, sat, october 22, 2022, 3:54:21

I got the following error while trying to install matplotlib using pip under Ubuntu 15.04 (Python 2.7.9).



Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 304, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-hP0laO/matplotlib


To be honest, I have no idea why the call to setup.py failed.


More From » software-installation

 Answers
7

I'm using matplotlib and other scipy packages like ipython and numpy In Ubuntu 15.04. I've them installed from the Ubuntu repositories. May be you should install python-matplotlib with apt-get



Have you tried to run:
sudo apt-get update; sudo apt-get install python-matplotlib


[#18775] Saturday, October 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stantildlike

Total Points: 363
Total Questions: 135
Total Answers: 120

Location: Pitcairn Islands
Member since Fri, Dec 17, 2021
2 Years ago
;