importerror numpy.core.multiarray failed to import

Asked 3 months ago, Updated 3 months ago, 10 views

environment

macos 10.9.5
python 2.7.5
Numpy 1.11.0
gunicorn 19.3.0

What's troubling you

I use virtualenv to run python code, but every time I update python code, it becomes importer error numpy.core.multiarray failed to import...

I thought it was because the version of Numpy and python didn't match, so I deleted the number in the mac from the beginning and it started to work normally for a while, but I got the above error again and again...

By the way, I can't get the above error when I try import numpy with python interpreter.The error occurs when gunicorn boots.

There are quite a few examples of the above errors, but they have not been resolved.It's a rough sentence, but I'd appreciate it if you could let me know if anyone understands anything.
Thank you for your cooperation.

gunicorn main:app --log-file=-
Launching gunicorn on the .
Whether active or not, ImportError: numpy.core.multiarray failed to import when starting gunicorn.

python numpy

2022-09-30 13:58

1 Answers

What kind of commands and config do you use to start from gunicorn?
Is there a problem starting python after activating?
If that's the case, try not activating, but starting from gunicorn with python in the same directory as activate in the full path.


2022-09-30 13:58

If you have any answers or tips


© 2023 OneMinuteCode. All rights reserved.