dylantheriot / valorant-match-history

See your VALORANT match history with LP (VP??) gains
43 stars 25 forks source link

Flask not found #1

Open walidashi opened 3 years ago

walidashi commented 3 years ago

I installed the requirements.txt then run python3 ./wsgi.py and I get Traceback (most recent call last): File "F:\Downloads\valorant-match-history-main\wsgi.py", line 1, in <module> from app.main import app File "F:\Downloads\valorant-match-history-main\app\main.py", line 1, in <module> from flask import Flask, render_template, request, redirect, url_for ModuleNotFoundError: No module named 'flask'

I tried python ./wsgi.py and I get Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) but it doesn't work.

dylantheriot commented 3 years ago

Hmm, try pip3 install -r requirements.txt, or pip3 install flask, or pip install flask

My guess is you may have installed Flask for python 2.x instead but let me know how this goes

edit: I'd also recommend setting up a brand new python virtualenv just for this project so none of your pre-existing python dependencies break it

dylantheriot commented 3 years ago

I ran into this problem on a different laptop. Try running python3 -m pip install -r requirements.txt, this seemed to fix it for me