我试图添加'PyMySQL,但它不断地抛出Traceback (most recent call last):
File "/home/john/workspace/Python/sql/sql.py", line 1, in
import PyMySQL
ImportError: No module named 'PyMySQL'
我试着通过pip安装它并再次运行它,但错误并没有消失。有什么问题吗?john@john-PC:$ sudo pip install PyMySQL
The directory '/home/john/.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/john/.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.
Collecting PyMySQL
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urll