1. 程式人生 > >操作MySQL-數據庫的安裝及Pycharm模塊的導入

操作MySQL-數據庫的安裝及Pycharm模塊的導入

art fine eight section con -- sts tro cmd

1.基於pyCharm開發環境,在CMD控制臺輸入依次輸入以下步驟:

(1)pip3 install PyMySQL < 安裝 PyMySQL >

C:\Users\Administrator> pip3 install PyMySQL
Collecting PyMySQL
Downloading https://files.pythonhosted.org/packages/ed/39/15045ae46
968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-a
B)
42% |█████████████▊ | 20kB 105kB/s

64% |████████████████████▋ | 30kB
85% |███████████████████████████▌
100% |██████████████████████████████
85kB/s
Installing collected packages: PyMySQL
Successfully installed PyMySQL-0.9.3

(2)pip list < 展示pip安裝列表 >

C:\Users\Administrator>pip list
DEPRECATION: The default format will switch to columns in the future. You can us


e --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.con
f under the [list] section) to disable this warning.
certifi (2019.3.9)
chardet (3.0.4)
idna (2.8)
itchat (1.3.10)
pip (9.0.1)
PyMySQL (0.9.3)
pypng (0.0.19)
PyQRCode (1.2.1)
requests (2.21.0)
setuptools (28.8.0)
urllib3 (1.24.1)

2.在Pycharm任意.py文件中輸入:import pymysq

l < 如果不報錯則,安裝成功>

報錯訪問此地址:https://blog.csdn.net/wujf90/article/details/79181886/

操作MySQL-數據庫的安裝及Pycharm模塊的導入