Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 缺少pgnuplot_Python_Cygwin_Gnuplot - Fatal编程技术网

Python 缺少pgnuplot

Python 缺少pgnuplot,python,cygwin,gnuplot,Python,Cygwin,Gnuplot,我试图通过cygwin使用gnuplot.py,但看起来我需要安装pgnuplot(我得到“/bin/sh:pgnuplot.exe:command not found”试图运行demo.py文件) 自述文件提供了一个ftp链接,但要么已经过时,要么我不知道如何使用它。有人能提供一种简单安装pgnuplot.exe的方法吗?我试着搜索这个,但无法破译我找到的任何东西。这不一定是一个明确的答案,更像是黑暗中的随机刺杀——但是,如果在gp.py中,您注释掉以下行会发生什么 elif sys.plat

我试图通过cygwin使用gnuplot.py,但看起来我需要安装pgnuplot(我得到“/bin/sh:pgnuplot.exe:command not found”试图运行demo.py文件)


自述文件提供了一个ftp链接,但要么已经过时,要么我不知道如何使用它。有人能提供一种简单安装pgnuplot.exe的方法吗?我试着搜索这个,但无法破译我找到的任何东西。

这不一定是一个明确的答案,更像是黑暗中的随机刺杀——但是,如果在
gp.py
中,您注释掉以下行会发生什么

elif sys.platform == 'cygwin':
    from gp_cygwin import GnuplotOpts, GnuplotProcess, test_persist
(您需要再次执行
python setup.py安装

现在,您应该转到“unix”块。根据我的经验,cygwin与unix的距离足够近,可以让很多事情正常工作


当然,我有自己的gnuplot python接口(pyGnuplot),如果您愿意,也可以尝试使用它,尽管它没有旧版本那么流行或有很好的文档记录。

这不一定是一个明确的答案,更像是在黑暗中随机插入——但是,如果在
gp.py
中,您注释掉以下行会发生什么:

elif sys.platform == 'cygwin':
    from gp_cygwin import GnuplotOpts, GnuplotProcess, test_persist
(您需要再次执行
python setup.py安装

现在,您应该转到“unix”块。根据我的经验,cygwin与unix的距离足够近,可以让很多事情正常工作

当然,我有自己的gnuplot python接口(pyGnuplot),如果您愿意,也可以尝试使用它,尽管它不像旧版本那样受欢迎或有很好的文档记录