码迷,mamicode.com
首页 > 数据库 > 详细

操作MySQL-数据库的安装及Pycharm模块的导入

时间:2019-04-06 12:30:56      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:his   mysql   charm   disable   mat   files   --   net   地址   

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 pymysql  < 如果不报错则,安装成功>

   报错访问此地址:https://blog.csdn.net/wujf90/article/details/79181886/

 

操作MySQL-数据库的安装及Pycharm模块的导入

标签:his   mysql   charm   disable   mat   files   --   net   地址   

原文地址:https://www.cnblogs.com/huoyuer/p/10661326.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!