Thanks, I understand.

在 2016年11月7日星期一 UTC+1下午7:35:10,Dima Pasechnik写道:
>
>
>
> On Monday, November 7, 2016 at 2:12:14 PM UTC, Eden Harder wrote:
>>
>> Thanks for you reply. I know import igraph works in sage. But I have 
>> installed two different packages: igraph and python_igraph. And what I want 
>> to do is import them in python.
>>
>
> python-igraph is a python interface to igraph, which seems to be a library 
> written in C.
> IMHO you cannot use igraph from python without using python-igraph (the 
> latter is known to python simply as igraph)---or perhaps some other python 
> interface, which might even be conflicting with python-igraph...
>
> In short, I'd think that 'import igraph' is all you need to use igraph 
> from python.
>
> By the way, if you first install python-igraph by doing
> sage --pip install python-igraph
>
> and then do
> sage --pip install igraph
>
> you will see a lot of "Requirement already satisfied:", and nothing else 
> which seems to say that igraph is a part of python-igraph.
>
>
>
> HTH,
> Dima
>
>
>
>  
>
>>
>> 在 2016年11月7日星期一 UTC+1下午2:29:58,Jeroen Demeyer写道:
>>>
>>> On 2016-11-07 13:52, Eden Harder wrote: 
>>> > I installed sagemath with hombrew on MacOS. And later I use `sage -i 
>>> > python_igraph` to install python_igraph. After that, I found that 
>>> > 
>>> > 1. I cannot import python_igraph in sage 
>>>
>>> The correct command is: 
>>>
>>> import igraph 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to