1

我通过命令行在ggplotWin64 环境中安装了 python 2.7:conda

$conda install -c https://conda.binstar.org/bokeh ggplot

自从:

$pip install -U ggplot

找不到包(请参阅以前的stackQ)。

检查是否安装了模块:

 >python -c "import ggplot"
 Traceback (most recent call last):
 File "<string>", line 1, in <module>
 ImportError: No module named ggplot

知道如何解决这个问题吗?

更新说明:调试测试

 $pip freeze  
 >(finds package ggplot)
 $import imp
 $imp.find_module("ggplot")
 >'C:\\Users\\Remi\\Anaconda2\\envs\\envx\\lib\\site-packages\\ggplot'
4

1 回答 1

1

我正在发布我到达的决议。它不是线性的,尽管它可能会使可能遇到类似问题的其他人受益。

第一步:激活模块envx所在的环境ggplot

再次导入模块:

$python -c "import ggplot"

提出以以下结尾的投诉:

ImportError: DLL load failed: The specified module could not be found.

在请求从scipyggplot模块导入的失败中。

第二步:重新安装scipy

$conda install scipy

在这里,conda 必须对python, numpy... 等进行一些“直观”的更新。在初始ggplot安装期间,conda走的是降级路线。

而已。

于 2016-05-27T22:18:14.043 回答