-
Notifications
You must be signed in to change notification settings - Fork 0
temp
liangliang edited this page Oct 6, 2019
·
14 revisions
Sublime 下报错 :ModuleNotFoundError: No module named 'pymysql
import sys
print(sys.executable)
print(sys.path)
/usr/local/bin/python3
['/Users/lc/code/test', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python37.zip',
'/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7',
'/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload',
'/Users/lc/Library/Python/3.7/lib/python/site-packages',
'/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages']
pip show pymysql
(base) LCdeMacBook-Air:pymysql lc$ pip show pymysql
Name: PyMySQL
Version: 0.9.3
Summary: Pure Python MySQL Driver
Home-page: https://github.com/PyMySQL/PyMySQL/
Author: yutaka.matsubara
Author-email: yutaka.matsubara@gmail.com
License: "MIT"
Location: /anaconda3/lib/python3.7/site-packages
Requires:
Required-by:
Location: /anaconda3/lib/python3.7/site-packages
location 不在sys.path 中
cp -r /anaconda3/lib/python3.7/site-packages/pymysql /Users/lc/Library/Python/3.7/lib/python/site-packages/