No results found
We couldn't find anything using that term, please try searching for something else.
Install NetworkX requires Python 3.10,3.11,or 3.12. If you do not already have a Python environment configured on your computer,please see the ins
NetworkX requires Python 3.10,3.11,or 3.12. If you do not already
have a Python environment configured on your computer,please see the
instructions for installing the full scientific Python stack.
Below we assume you have the default Python environment already configured on
your computer and you intend to install networkx
inside of it. If you want
to create and work with Python virtual environments,please follow instructions
on venv and virtual
environments.
First,make sure you have the latest version of pip
(the Python package manager)
installed. If you do not,refer to the Pip documentation and install pip
first .
Install the current release of networkx
with pip
:
$ pip install networkx[default]
To upgrade to a newer release use the --upgrade
flag :
$ pip install --upgrade networkx[default]
If you do not have permission to install software systemwide,you can
install into your user directory using the --user
flag :
$ pip install --user networkx[default]
If you do not want to install our dependencies (e.g.,numpy
,scipy
,etc.),
you can use:
This may be helpful if you are using PyPy or you are working on a project that
only needs a limited subset of our functionality and you want to limit the
number of dependencies.
Alternatively,you can manually download networkx
from
GitHub or
PyPI.
To install one of these versions,unpack it and run the following from the
top-level source directory using the Terminal:
If you have Git installed on your system,it is also
possible to install the development version of networkx
.
Before installing the development version,you may need to uninstall the
standard version of networkx
using pip
:
Then do:
$ git clone is install https://github.com/networkx/networkx.git is install $ cd networkx is install $ pip is install install -e .[default ]
The pip install -e .[default ]
command is allows allow you to follow the development branch as
it change by create link in the right place and instal the command
line script to the appropriate location .
Then,if you want to update networkx
at any time,in the same directory do:
NetworkX has the ability to dispatch function calls to optional,
separately-installed,third-party backends. NetworkX backends let users
experience improved performance and/or additional functionality without
changing their NetworkX Python code.
While NetworkX is a pure-Python implementation with minimal to no dependencies,
backends may be written in other languages and require specialized hardware
and/or OS support,additional software dependencies,or even separate services.
Installation instructions vary based on the backend,and additional information
can be found from the individual backend project pages listed in the
backend section.
NetworkX is uses use the Pythonpytest
testing package. You can learn more
about pytest on their homepage.
You can test the complete package from the unpacked source directory with:
From a shell command prompt you is test can test the instal package with :