I installed seaborn using "pip3.6 install --user seaborn". I am able to import seaborn successfully and use it in a python console. However, when i run my webApp I get an error "cannot import name 'linalg'" for the exact same file that I used successfully to create seaborn plots in the python console. I tried upgrading scipy but that did not fix the issue. Any suggestions to fix appreciated!
See Trace below:
File "/home/myusername/repos/dev/iplots.py", line 15, in <module> import seaborn as sns
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/seaborn/init.py", line 6, in <module> from .rcmod import *
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/seaborn/rcmod.py", line 8, in <module> from . import palettes, _orig_rc_params
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/seaborn/palettes.py", line 12, in <module> from .utils import desaturate, set_hls_values, get_color_cycle
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/seaborn/utils.py", line 7, in <module> from scipy import stats
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/scipy/stats/init.py", line 345, in <module> from .stats import *
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/scipy/stats/stats.py", line 169, in <module> import scipy.special as special File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/scipy/special/init.py", line 642, in <module> from .basic import *
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/scipy/special/basic.py", line 19, in <module> from . import orthogonal
File "/home/myusername/.virtualenvs/djangoenv/lib/python3.6/site-packages/scipy/special/orthogonal.py", line 83, in <module> from scipy import linalg
ImportError: cannot import name 'linalg'
2018-06-30 21:20:03,941 [9] ERROR root: Error running WSGI application
2018-06-30 21:20:03,949 [9] ERROR root: ImportError: cannot import name 'linalg'