如何安装 Pygraphics 模块
How do I install the Pygraphics module
我正在尝试使用 Python 2.7.6 下载 Pygraphics 模块,但迄今为止一直没有成功。下面我将详细说明到目前为止我已采取的步骤。如有任何帮助,我们将不胜感激。
首先,我尝试使用 pip
进行典型安装
sudo pip install Pygraphics
当我尝试导入模块时,收到一条错误消息 ImportError: No module named Pygraphics
。
为了测试模块是否已安装,我 运行 下面的代码:print sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])
它显示了我所有已安装的发行版。
这段代码返回了以下所有发行版的列表,并清楚地表明 Pygraphics 已安装:
['altgraph==0.10.2', 'bdist-mpkg==0.5.0', 'bonjour-py==0.3', 'brewer2mpl==1.4', 'certifi==14.05.14', 'datetime==4.0.1', 'flask==0.10.1', 'ggplot==0.6.5', 'ipython==2.0.0-dev', 'itsdangerous==0.24', 'jdcal==1.0', 'jinja2==2.7.3', 'macholib==1.5.1', 'markupsafe==0.23', 'matplotlib==1.4.x', 'mock==1.0.1', 'modulegraph==0.10.4', 'nose==1.3.4', 'numpy==1.9.0.dev-297f54b', 'openpyxl==2.1.2', 'pandas==0.14.1', 'pandasql==0.6.1', 'patsy==0.3.0', 'pika==0.9.14', 'py2app==0.7.3', 'pygments==1.6', 'pygraphics==2.1']
在此之后,我尝试使用位于以下 Pygrahpics install website 上的 GUI 安装程序。在安装程序时,我收到了一条错误消息 "PyGraphics requires System Python 2.7 to install",尽管我已经下载了 Python 2.7.6.
此时我不知道该怎么办,希望有类似问题的人可以帮助我。
感谢您的宝贵时间。
看来您已经成功安装 PyGraphics。现在 import picture
:)
我正在尝试使用 Python 2.7.6 下载 Pygraphics 模块,但迄今为止一直没有成功。下面我将详细说明到目前为止我已采取的步骤。如有任何帮助,我们将不胜感激。
首先,我尝试使用 pip
sudo pip install Pygraphics
当我尝试导入模块时,收到一条错误消息 ImportError: No module named Pygraphics
。
为了测试模块是否已安装,我 运行 下面的代码:print sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])
它显示了我所有已安装的发行版。
这段代码返回了以下所有发行版的列表,并清楚地表明 Pygraphics 已安装:
['altgraph==0.10.2', 'bdist-mpkg==0.5.0', 'bonjour-py==0.3', 'brewer2mpl==1.4', 'certifi==14.05.14', 'datetime==4.0.1', 'flask==0.10.1', 'ggplot==0.6.5', 'ipython==2.0.0-dev', 'itsdangerous==0.24', 'jdcal==1.0', 'jinja2==2.7.3', 'macholib==1.5.1', 'markupsafe==0.23', 'matplotlib==1.4.x', 'mock==1.0.1', 'modulegraph==0.10.4', 'nose==1.3.4', 'numpy==1.9.0.dev-297f54b', 'openpyxl==2.1.2', 'pandas==0.14.1', 'pandasql==0.6.1', 'patsy==0.3.0', 'pika==0.9.14', 'py2app==0.7.3', 'pygments==1.6', 'pygraphics==2.1']
在此之后,我尝试使用位于以下 Pygrahpics install website 上的 GUI 安装程序。在安装程序时,我收到了一条错误消息 "PyGraphics requires System Python 2.7 to install",尽管我已经下载了 Python 2.7.6.
此时我不知道该怎么办,希望有类似问题的人可以帮助我。
感谢您的宝贵时间。
看来您已经成功安装 PyGraphics。现在 import picture
:)