It is a coping memo of the title. This time it is assumed that there is no WT Forms.
pip show WTForms
Name: WTForms
Version: 2.2.1
Summary: A flexible forms validation and rendering library for Python web development.
Home-page: https://wtforms.readthedocs.io/
Author: Thomas Johansson, James Crasta
Author-email: [email protected]
License: BSD
Location: /Users/XXX/.pyenv/versions/3.7.5/lib/python3.7/site-packages
Requires:
Required-by: wtforms-validators, Flask-WTF
sample.py
import sys
sys.path.append("/Users/XXX/.pyenv/versions/3.7.5/lib/python3.7/site-packages")
This solved it.
https://web.plus-idea.net/2017/05/python-import-error-no-module-name/
Recommended Posts