How to setup matplotlib in linux server?

This is referring to the smem of url > We have already downloaded the smem (.tar.gz), and unzip them in /root/smem-1.4. smem is working now. However, if you want have the figures in pie chart(as shown in the url), you need to setup "matplotlab".

We already downloaded the matplotlib-3.0.0.tar.gz, and unzip to /root/matplotlib-3.0.0 folder. Please see the list of files as below,


BTW, how to setup this matplotlib on the server?

Thanks in advance.
MichaelBalackSenior System EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MichaelBalackSenior System EngineerAuthor Commented:
Hi all,

lib, tools, doc, examples, src, tutorials, LICENSE, and extern are folders
On Redhat Linux you can run below command

# yum -y install python-matplotlib

Check Python, NumPy, libpng and FreeType dependencies are installed before hand.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
If you're using Ubuntu/Debian, you can simply do this...

apt-get install smem

Open in new window

Which will install smem + all dependencies.
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

nociSoftware EngineerCommented:
if pip is supported on your platform you could try pip install python-matplotlib
See also:

alternatively you can install Matplotlib and its dependencies as wheel packages

python -m pip install -U pip
python -m pip install -U matplotlib

Open in new window

MichaelBalackSenior System EngineerAuthor Commented:
Hi Myousufali and David,

This is using SuSE Linux Enterprise 11 with SP4.

Hi noci,

Think pip is not support.

Hi dfke,

Attempt to run any one of the commands suggested result in error,

/usr/bin/python: No module named pip
MichaelBalackSenior System EngineerAuthor Commented:
Hi all,

Python version is, 2.6.9-31.1

you need to install pip first then:

curl -O
tar xvfz pip-1.2.1.tar.gz
cd pip-1.2.1
zypper install python-setuptools
python install
ln -sfn /usr/local/bin/pip /usr/bin/pip
pip install --upgrade awscli
cd ..

Open in new window

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
While dkfe's suggestion is correct, about how to install pip, better to install pip + all packages via the package manager.

This allows you to do simple upgrades, via the package manager, to pull in bug fixes + security fixes + performance enhancements.

Remember, anything you build from source, you must continually monitor each project you build + rebuild it anytime the code becomes hackable.

So, since your using SUSE, you'll use SUSE Zypper to install all your packages. I only use Ubuntu, so I'm unfamiliar with exact syntax, so refer to link.

And likely Zypper provides dependency management, so when you install one package, then any dependencies like pip, are installed for you.
nociSoftware EngineerCommented:
There is this:
Also there are quite some matplot lib packages:

Now openSuse might be different from Suse..., can't opensuse modules be used on Suse?  (like Fedora on Redhat?)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MichaelBalackSenior System EngineerAuthor Commented:
Found expert - noci's suggestion is good.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.