installing the newest networkx version

1,043 views
Skip to first unread message

irinag

unread,
Feb 7, 2012, 5:34:00 PM2/7/12
to networkx-discuss
Hello,

I seem to not be able to use the articulation points function, it says
that it doesn't exist. I guess it's added to the newer version? I
tried installing the newer networkx, but I'm having trouble with it.
How do I install it and make sure my python script uses the newer
package?

Last time, I think the easy-install as provided on the website
directions worked fine. But it's not working now.

Thanks,
Irina.

Simon Knight

unread,
Feb 8, 2012, 12:32:26 AM2/8/12
to networkx...@googlegroups.com
Hi,
you can force an upgrade with easy_install:
easy_install -U networkx

You can check the version number in Python:
>>> import pkg_resources
>>> pkg_resources.get_distribution("networkx").version
'1.6'

I have version 1.6 (installed using easy_install), and the
articulation points is there.

You can check the version when you import a module, but unless you
need to do this for a specific reason, you shouldn't need to do this;
a standard import should be fine.


Cheers
Simon

> --
> You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
> To post to this group, send email to networkx...@googlegroups.com.
> To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.
>

irinag

unread,
Feb 9, 2012, 3:49:50 PM2/9/12
to networkx-discuss
thank you so much for your help! it works now!!! :)

On Feb 8, 12:32 am, Simon Knight <simon.kni...@gmail.com> wrote:
> Hi,
> you can force an upgrade with easy_install:
> easy_install -U networkx
>
> You can check the version number in Python:>>> import pkg_resources
> >>> pkg_resources.get_distribution("networkx").version
>
> '1.6'
>
> I have version 1.6 (installed using easy_install), and the
> articulation points is there.
>
> You can check the version when you import a module, but unless you
> need to do this for a specific reason, you shouldn't need to do this;
> a standard import should be fine.
>
> Cheers
> Simon
>
Reply all
Reply to author
Forward
0 new messages