简体   繁体   中英

Module not found error in python for networkx

I am trying to deploy a python web project on flask with the following code snippets:

import sys, numpy as np
import logging
import networkx as nx
import common as cm

I have also used pip install networkx to install the libraries:

pip install networkx

It is still giving this error:

Traceback (most recent call last):

File "C:\Users\User\Documents\ppi-research\main.py", line 3, in import contacts as ct File "C:\Users\User\Documents\ppi-research\contacts.py", line 3, in import networkx ModuleNotFoundError: No module named 'networkx'

do pipenv install networkx while in a virtual env (pipenv shell).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM