# "import igraph" does not work after installing with "pip install igraph"

**URL:** <https://igraph.discourse.group/t/import-igraph-does-not-work-after-installing-with-pip-install-igraph/33>\
**Category:** Installation\
**Tags:** Python\
**Created:** [28 January 2020 21:17 UTC](https://igraph.discourse.group/t/import-igraph-does-not-work-after-installing-with-pip-install-igraph/33 "2020-01-28T21:17:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtraag](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/vtraag/32/38_2.png) [@vtraag](https://igraph.discourse.group/u/vtraag)\
**Post date:** [28 January 2020 21:17 UTC](https://igraph.discourse.group/t/import-igraph-does-not-work-after-installing-with-pip-install-igraph/33/1 "2020-01-28T21:17:34Z")

</div>

I am trying to install `igraph` in Python. The installation is successful, but when I import the library using `import igraph` I get an error

```auto
DeprecationWarning: To avoid name collision with the igraph project, this visualization library has been renamed to 'jgraph'. Please upgrade when convenient.

```

I used `pip install igraph`, and it says that it successfully installed `igraph-0.1.11`. I am running Ubuntu 19.04, Anaconda Python 3.7.0.

What should I do?

---

<div class="post-metadata">

**Author:** ![vtraag](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/vtraag/32/38_2.png) [@vtraag](https://igraph.discourse.group/u/vtraag)\
**Post date:** [28 January 2020 21:25 UTC](https://igraph.discourse.group/t/import-igraph-does-not-work-after-installing-with-pip-install-igraph/33/2 "2020-01-28T21:25:39Z")

</div>

The package you installed is **not** the igraph library for network analysis in Python. It is a deprecated version of a Python package, now called [`jgraph`](https://pypi.org/project/jgraph/), which provides webGL graph visualization. The Python package for network analysis in Python is called **`python-igraph`**.

You can install the correct Python package as follows:

1. Please uninstall the incorrect package using `pip uninstall igraph`
2. Install the correct package using `pip install python-igraph`.

The confusion is understandable though, because once you have installed the `python-igraph` package, you can import it using `import igraph`.

Hope this helps!
