eu que peço desculpa pela insistência. Mas...:
vinicius@vinicius-VPCEG17FB:~/Documentos/Flask projects/ForIt$ sudo pip2.7 install --upgrade pip
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/vinicius/.cache/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 '/home/vinicius/.cache/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 up-to-date: pip in /usr/local/lib/python2.7/dist-packages (18.0)vinicius@vinicius-VPCEG17FB:~/Documentos/Flask projects/ForIt$ sudo pip2.7 install flask_mysql
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/vinicius/.cache/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 '/home/vinicius/.cache/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_mysql in /usr/local/lib/python2.7/dist-packages (1.4.0)
Requirement already satisfied: Flask in /usr/local/lib/python2.7/dist-packages (from flask_mysql) (0.12.2)
Requirement already satisfied: PyMySQL in /usr/local/lib/python2.7/dist-packages (from flask_mysql) (0.9.2)
Requirement already satisfied: Jinja2>=2.4 in /usr/local/lib/python2.7/dist-packages (from Flask->flask_mysql) (2.10)
Requirement already satisfied: Werkzeug>=0.7 in /usr/local/lib/python2.7/dist-packages (from Flask->flask_mysql) (0.14.1)
Requirement already satisfied: click>=2.0 in /usr/local/lib/python2.7/dist-packages (from Flask->flask_mysql) (6.7)
Requirement already satisfied: itsdangerous>=0.21 in /usr/local/lib/python2.7/dist-packages (from Flask->flask_mysql) (0.24)
Requirement already satisfied: cryptography in /usr/lib/python2.7/dist-packages (from PyMySQL->flask_mysql) (1.2.3)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python2.7/dist-packages (from Jinja2>=2.4->Flask->flask_mysql) (1.0)
vinicius@vinicius-VPCEG17FB:~/Documentos/Flask projects/ForIt$ python app.py
Traceback (most recent call last):
File "app.py", line 5, in <module>
from flask_mysql import MySQL
ImportError: No module named flask_mysql
vinicius@vinicius-VPCEG17FB:~/Documentos/Flask projects/ForIt$