Skip to content Skip to sidebar Skip to footer

Flask+uwsgi+nginx+centos Error Import Module Numpy

python 3.6 in virtualenv with numpy when i start the service: r-python uwsgi[9729]: def empty_like(prototype, dtype=None, order=None, subok=None): r-python uwsgi[9729]: File '/home

Solution 1:

I've run into this while running projects under uWSGI that import numpy. There is some interaction between the default sub interpreters that uWSGIs uses and numpy's initialization.

You can tell uWSGI to not use sub interpreters in your config for uWSGI with the line:

single-interpreter = true

Where to add this will depend on how you configured uWSGI.

Post a Comment for "Flask+uwsgi+nginx+centos Error Import Module Numpy"