简体   繁体   English

osx 10.10上的Anaconda和pkg-config:如何防止pip安装问题?

[英]Anaconda and pkg-config on osx 10.10: how to prevent pip installation problems?

I'm using anaconda python 2.7, and keep finding problems installing python libraries using pip that seem to rely on pkg-config . 我正在使用anaconda python 2.7,并不断发现使用似乎依赖于pkg-config pip安装python库的问题。 In particular, python-igraph (although the author of that library kindly added a patch to help conda users) and louvain (which I have yet to fix). 特别是python-igraph (尽管该库的作者友好地添加了一个补丁来帮助louvain用户)和louvain (我还没有修复)。

Would installing pkg-config lead to conflicts with anaconda? 安装pkg-config是否会导致与anaconda发生冲突? Is there a way to set them up to play nice? 有没有办法让他们发挥出色?

Thanks! 谢谢!

I faced some installation issues with Anaconda and my fix was to download manually the components of the Anaconda package. 我遇到了Anaconda的一些安装问题,而我的解决方法是手动下载Anaconda软件包的组件。
If you use sudo apt-get python3-numpy for example, it will download as well as all the dependencies. 例如,如果使用sudo apt-get python3-numpy ,它将下载所有依赖项。
So all you have to do is download the major libraries. 因此,您要做的就是下载主要的库。

Although I don't believe pkg-config causes conflicts with Anaconda. 尽管我不相信pkg-config会导致与Anaconda发生冲突。 Give it a shot, should be easy to resolve issues if any at all. 试试看,应该很容易解决所有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM