【发布时间】:2015-10-05 05:54:50
【问题描述】:
有人成功安装了 taynaud/python-louvain 库吗? 我从website 下载了一个文件并通过“pip”命令(从 Anaconda 根目录)安装它
$ pip install /Users/sundong/downloads/taynaud-python-louvain-f56ac904d92c/
好像安装成功了。
Requirement already satisfied (use --upgrade to upgrade): python-louvain==0.4 from file:///Users/sundong/downloads/taynaud-python-louvain-f56ac904d92c in ./lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): networkx in ./lib/python2.7/site-packages (from python-louvain==0.4)
Building wheels for collected packages: python-louvain
Running setup.py bdist_wheel for python-louvain
Stored in directory: /Users/sundong/Library/Caches/pip/wheels/2a/50/5c/740608e77d3b5fb8d19060237f3e7fd6ff8e391ad80e54dcb3
Successfully built python-louvain
但是,当我导入社区模块时,会出现 ImportError。
ImportError: No module named community
安装这个库的正常步骤是什么?我正在使用 Mac OS X,以防万一。
我也在 anaconda 目录中尝试了以下命令。
$ python /Users/sundong/downloads/taynaud-python-louvain-f56ac904d92c/setup.py install
但是结果如下。
running install
running bdist_egg
running egg_info
writing requirements to python_louvain.egg-info/requires.txt
writing python_louvain.egg-info/PKG-INFO
writing top-level names to python_louvain.egg-info/top_level.txt
writing dependency_links to python_louvain.egg-info/dependency_links.txt
writing entry points to python_louvain.egg-info/entry_points.txt
warning: manifest_maker: standard file 'setup.py' not found
error: package directory 'community' does not exist
【问题讨论】:
标签: python installation anaconda