No error command in flask installation process under mac run flask, say command not found

read several tutorials, the installation process is not too many holes, the actual installation process is smooth, until cmd runs. Command not found .
https://blog.csdn.net/testcs_.
main reference: https://blog.csdn.net/CUFE_pa.
reinstallation looks fine:
ancysMac:ancysweb ancyhuang$ sudo pip install Flask
Password:
The directory"/ Users/xx/Library/Caches/pip/http" or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo"s-H flag.
The directory"/ Users/xx/Library/Caches/pip" or its parent directory is not owned by the current user and caching wheels has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, You may want sudo"s-H flag.
Requirement already satisfied: Flask in / Library/Python/2.7/site-packages (0.10.1)
Requirement already satisfied: Werkzeug > = 0.7 in / Library/Python/2.7/site-packages (from Flask) (0.14.1)
Requirement already satisfied: Jinja2 > = 2.4 in / Library/Python/2.7/site-packages (from Flask) (2.10)
Requirement already satisfied: itsdangerous > = 0.21 in / Library/Python/2.7/site-packages (from Flask )
Requirement already satisfied: MarkupSafe > = 0.23 in / Library/Python/2.7/site-packages (from Jinja2 > = 2.4-> Flask) (1.1.0)

but a run:
ancysMac:ancysweb ancyhuang$ flask
-bash: flask: command not found

Feb.14,2022

use pip list in command to check whether there is flask
clipboard.png
demo.py


python demo.py


.

is still the same. Demo can also run and helloworld can be output from the browser

.

export PATH=$PATH:~/.local/bin/-sharp to be permanent, write .bashrc or profile

try flask again:

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e6629b-44ede.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e6629b-44ede.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?