I have python 3.7 installed with mod_Wsgi and Apache2.4. A simple website works on the server but when I try to import my own python modules or other modules like numpy the server just hangs and never fully loads.
I tried looking at windows event logger and logs in my apache file but there was nothing there that said there was any problems. I also tried sys.path.append(path) before each library but that didn't work.
This is an example code that I'm using to test why the server doesn't work when I import other libraries. I already did "pip install numpy"
web.wsgi file:
import numpy as np
import sys
sys.path.append('C:/myapp/app/')
from app import app as application
app.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
a = np.arrange(12).reshape(2,2,3)
return "f"
if __name=="__main__"
app.run()