mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-10-16 02:21:52 +00:00
[GH-ISSUE #9] ModuleNotFoundError: No module named 'flask' #4
Labels
No labels
bug
duplicate
planned
pull-request
under consideration
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Extras#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @trihardseven on GitHub (Apr 12, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/9
Getting this error when trying to install the extra modules:
$ python server.py --enable-modules=caption
Traceback (most recent call last):
File "N:\AI\Text\TavernAI-extras\server.py", line 2, in
from flask import Flask, jsonify, request, render_template_string, abort
ModuleNotFoundError: No module named 'flask'
@Cohee1207 commented on GitHub (Apr 12, 2023):
Did you run
pip install -r requirements.txtfirst?@trihardseven commented on GitHub (Apr 12, 2023):
Yes. I just checked and I'm getting an error when running that.
Successfully built transformers
Installing collected packages: networkx, MarkupSafe, markdown, itsdangerous, idna, filelock, colorama, charset-normalizer, certifi, Werkzeug, tqdm, requests, jinja2, click, webuiapi, torch, huggingface-hub, flask, transformers, flask-cors, flask-cloudflared
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Python311\share'
Consider using the
--useroption or check the permissions.@trihardseven commented on GitHub (Apr 13, 2023):
ran with --user like the console suggested and it worked
@hboxgames commented on GitHub (Sep 15, 2023):
Hi, What do you mean running with --user could you specify the solution for others... please thanks