安装python-igraph 0.7.1-4抛出错误为"10038,'尝试对非套接字的操作'

viv*_*iva 6 64-bit igraph anaconda

Windows 7 64位

Python 2.7.7 64位Anaconda

尝试从https://pypi.python.org/pypi/python-igraph安装python-igraph python-igraph-0.7.1-4.tar.gz .

我已经使用anaconda发行版(windows)安装了python-igraph,我可以将Python windows软件包安装到virtualenvs中吗?以及调试问题的相关链接.

我知道问题出现是因为没有C核心.我尝试通过easy_install安装时错误消息也包含此消息 -

Cannot find the C core of igraph on this system using pkg-config.

WARNING: we were not able to detect where igraph is installed on
your machine (if it is installed at all). We will use the fallback
library and include pathss hardcoded in setup.py and hope that the
C core of igraph is installed there.
If the compilation fails and you are sure that igraph is installed
on your machine, adjust the following two variables in setup.py
accordingly and try again:
- LIBIGRAPH_FALLBACK_INCLUDE_DIRS
- LIBIGRAPH_FALLBACK_LIBRARY_DIRS 
Run Code Online (Sandbox Code Playgroud)

你能提供任何解决方案的指示.谢谢.

Tam*_*más 8

Christoph Gohlke的页面在Windows 托管了几个用于Python的预编译软件包,包括igraph的Python界面.从该页面下载与您的Python版本对应的Python轮,并使用该pip命令进行安装.由于您使用的是Python 2.7,因此需要cp27文件名中包含的那个.


小智 5

我只是遇到了同样的问题,无论是通过pycharm安装程序还是通过pip install我都无法安装python-igraph。

塔玛斯给出的解决方案对我有用。从Christoph Gohles页面下载所需的文件。

打开终端

> cd ./ContainingFolder
> pip install python_igraph-0.7.1.post4-cp34-none-win_amd64.whl
Processing c:\users\username\ContainingFolder\python_igraph-0.7.1.post4-cp34-none-win_amd64.whl
Installing collected packages: python-igraph

Successfully installed python-igraph-0.7.1.post4
Run Code Online (Sandbox Code Playgroud)