本文介绍了安装ggp​​lot for python失败,错误代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  pip install ggplot 

我试图为Python安装ggp​​lot,

但我收到一条错误消息,说



我在Windows8上使用Python2.7。我查看了建议,并尝试了其他建议


  1. pip安装轮子以安装对轮子文件的支持。

  2. pip install ggplot-0.11.5-py2.py3-none-any.whl来安装车轮。我从下载了whl文件。

这样做之后,我收到了更多消息:
scipy的构建轮失败
scipy的清理构建失败

另外我仍然收到原始的错误信息。



请提供建议。

解决方案


  1. 下载numpy-1.11。

    2 + mkl-cp27-cp27m-win_amd64.whl和scipy-0.18.1-cp27-cp27m-win_amd64.whl文件来自到C:\Python27\Scripts目录。


  2. 在Windows的DOS命令窗口中运行以下命令:

    pip安装numpy-1.11.2 + mkl-cp27-cp27m-win_amd64.whl



    pip安装scipy-0.18.1-cp27-cp27m-win_amd64.whl


它们都已成功安装。 p>


  1. 最后

    安装ggp​​lot



I am trying to install ggplot for Python using

pip install ggplot

but I get an error message saying

I am using Python2.7 on Windows8. I looked at the suggestions and among other things tried the suggestion here

  1. pip install wheel to install support for wheel files.
  2. pip install ggplot-0.11.5-py2.py3-none-any.whl to install the wheel. I downloaded the whl file from here.

Upon doing this I got further messages saying:Failed building wheel for scipyFailed cleaning build for scipy

In addition I still get the original error message.

Please provide suggestions.

解决方案

After trying all possible things suggested in various forums this is what worked for me:

  1. Download numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl files from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy to C:\Python27\Scripts directory.
  2. Run the following commands from the DOS command window in windows

    pip install numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl

    pip install scipy-0.18.1-cp27-cp27m-win_amd64.whl

They were both successfully installed.

  1. Finally

    pip install ggplot

这篇关于安装ggp​​lot for python失败,错误代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 17:57