# Install NetworkX package, version 1.11

**URL:** <https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763>\
**Category:** User discussions\
**Created:** [September 3, 2020, 2:31pm UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763 "2020-09-03T14:31:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![D429321](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@D429321](https://gromacs.bioexcel.eu/u/D429321)\
**Post date:** [September 3, 2020, 2:31pm UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/1 "2020-09-03T14:31:29Z")

</div>

GROMACS version: 2020.1  
GROMACS modification: Yes/No  
Hello!  
I want to install the NetworkX package, version 1.11 in order to execute the “python cgenff\_charmm2gmx.py JZ4 jz4\_fix.mol2 jz4.str charmm36-mar2019.ff” script. I am not able to find the correct place to install this. Kindly suggest a solution for this. Thanks for reading this question.

Regards

---

<div class="post-metadata">

**Author:** ![claudia](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@claudia](https://gromacs.bioexcel.eu/u/claudia)\
**Post date:** [September 4, 2020, 4:51pm UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/2 "2020-09-04T16:51:42Z")

</div>

I did:

install python2  
pip install networkx==1.11

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [September 5, 2020, 1:10am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/3 "2020-09-05T01:10:34Z")

</div>

@claudia is right on, but also note that the old version of NetworkX is no longer required. We offer several versions of the script for different Python and NetworkX versions that the user might have. We support Python3 and NetworkX 2.x now.

---

<div class="post-metadata">

**Author:** ![D429321](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@D429321](https://gromacs.bioexcel.eu/u/D429321)\
**Post date:** [September 5, 2020, 7:12am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/4 "2020-09-05T07:12:29Z")

</div>

Thank you for your valuable reply. I will try it out.

---

<div class="post-metadata">

**Author:** ![premk](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@premk](https://gromacs.bioexcel.eu/u/premk)\
**Post date:** [November 19, 2020, 8:58am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/5 "2020-11-19T08:58:36Z")

</div>

## I have python 3.8 and networkx 2.4, but gromacs running gives me the following error. please suggest the right way

This script has been tested with NetworkX 2.3, and 2.4 is buggy.  
Please install version 2.3 for best performance:  
pip uninstall networkx  
pip install networkx==2.3  
NOTE 1: Code tested with Python 3.5.2 and 3.7.3. Your version: 3.8.3 (default, Jul 2 2020, 16:21:59)  
[GCC 7.3.0]

## NOTE 2: Code tested with NetworkX 2.3. Your version: 2.4

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [November 19, 2020, 10:39am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/6 "2020-11-19T10:39:15Z")

</div>

This is not a GROMACS issue, but one with the CGenFF conversion script. The `pip install` command should do the trick but if not, then you need to investigate what’s going on with your Python distribution.

---

<div class="post-metadata">

**Author:** ![premk](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@premk](https://gromacs.bioexcel.eu/u/premk)\
**Post date:** [November 21, 2020, 5:35am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/7 "2020-11-21T05:35:18Z")

</div>

- just skeptical if i use “pip install networkx2.3”, will it be compatible with the python 3.8?
- networkx2.3 compatibility is with python 3.5, 3.6, 3.7

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [November 23, 2020, 2:03pm UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/8 "2020-11-23T14:03:01Z")

</div>

If your `pip` is from the Python3 package, yes.

---

<div class="post-metadata">

**Author:** ![Hyma](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@Hyma](https://gromacs.bioexcel.eu/u/Hyma)\
**Post date:** [April 28, 2022, 11:24am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/9 "2022-04-28T11:24:48Z")

</div>

Hi I have python3 and Networkx 2.3 version installed  
But when I run the command  
cgenff\_charmm2gmx\_py3\_nx2.py JZ4 jz4\_fix.mol2 jz4.str charmm36-mar2019.ff  
the following message appears. Unable to understand what to do ?  
File “cgenff\_charmm2gmx\_py3\_nx2.py”, line 991, in if(float(nx. **version** ) \< 2.0): ValueError: could not convert string to float: ‘2.5.1’  
I am using gromacs-2021.5 version

---

<div class="post-metadata">

**Author:** ![Swall](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Swall](https://gromacs.bioexcel.eu/u/Swall)\
**Post date:** [October 6, 2022, 2:26pm UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/10 "2022-10-06T14:26:28Z")

</div>

Hi Hyma, did you solved it to problem?

---

<div class="post-metadata">

**Author:** ![Hyma](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@Hyma](https://gromacs.bioexcel.eu/u/Hyma)\
**Post date:** [October 8, 2022, 5:26pm UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/11 "2022-10-08T17:26:02Z")

</div>

Thanks for your concern. I am glad that I solved the problem.

---

<div class="post-metadata">

**Author:** ![subash955128](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@subash955128](https://gromacs.bioexcel.eu/u/subash955128)\
**Post date:** [March 9, 2024, 11:04am UTC](https://gromacs.bioexcel.eu/t/install-networkx-package-version-1-11/763/12 "2024-03-09T11:04:32Z")

</div>

how do you solve could you share.  
i have same problem
