python 终端中 Gnuplot 的导入错误
ImportError for Gnuplot in python terminal
我在 Centos 6 系统上安装了 Gnuplot 4.2 补丁级别 6。但是,每当我尝试在 python 终端中导入 Gnuplot 时,我都会收到一条错误消息,指出没有名为 Gnuplot:
的模块
'>>> import Gnuplot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Gnuplot`
请帮忙。谢谢
尝试:
pip install gnuplot-py
如果它不起作用,请尝试从 http://gnuplot-py.sourceforge.net/ 下载软件包并安装它。
pip install gnuplot-py
对我没用
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
但下面的工作完成了:
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
最简单的解决方案是
克隆:
git 将 https://github.com/jrk/gnuplot-py 克隆到站点包中
进入安装目录使用:
python setup.py 安装
我在 Centos 6 系统上安装了 Gnuplot 4.2 补丁级别 6。但是,每当我尝试在 python 终端中导入 Gnuplot 时,我都会收到一条错误消息,指出没有名为 Gnuplot:
的模块'>>> import Gnuplot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Gnuplot`
请帮忙。谢谢
尝试:
pip install gnuplot-py
如果它不起作用,请尝试从 http://gnuplot-py.sourceforge.net/ 下载软件包并安装它。
pip install gnuplot-py
对我没用
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
但下面的工作完成了:
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
最简单的解决方案是
克隆:
git 将 https://github.com/jrk/gnuplot-py 克隆到站点包中
进入安装目录使用:
python setup.py 安装