Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError for Gnuplot in python terminal

I have Gnuplot 4.2 patchlevel 6 installed on my Centos 6 system. However, whenever I try importing Gnuplot in the python terminal, I get an error message which says that there is no module named Gnuplot:

'>>> import Gnuplot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named Gnuplot`

Please help. Thanks.

like image 654
aman Avatar asked Mar 16 '23 13:03

aman


2 Answers

pip install gnuplot-py

didnot worked for me

Collecting gnuplot-py
Could not find a version that satisfies the requirement gnuplot-py (from versions: )
  Some externally hosted files were ignored as access to them may be unreliable (use --allow-external gnuplot-py to allow).
No matching distribution found for gnuplot-py

but following did the job:

wget http://downloads.sourceforge.net/project/gnuplot-py/Gnuplot-py/1.8/gnuplot-py-1.8.tar.gz
tar xzf gnuplot-py-1.8.tar.gz
cd gnuplot-py-1.8/
python setup.py install
like image 143
Samsky Avatar answered Mar 26 '23 03:03

Samsky


try:

pip install gnuplot-py

If it does not work, try downloading the package from http://gnuplot-py.sourceforge.net/ and install it.

like image 24
flycee Avatar answered Mar 26 '23 03:03

flycee