python第三方包的安装(pymysql)-- pip 国内源

版权声明:本文为博主原创文章,未经博主允许不得转载 https://blog.csdn.net/g_optimistic/article/details/88553086

目录

一、常规安装

1、pip install pymysql

2、pip install pymysql -r 国内的源

二、zip安装包

三、WHL包

四、pycharm


pymysql是python操作mysql的三方模块

一、常规安装

1、pip install pymysql


2、pip install pymysql -r 国内的源

国内的源:

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学 http://pypi.hustunique.com/
山东理工大学 http://pypi.sdutlinux.org/
豆瓣 http://pypi.douban.com/simple/

导出pip清单

pip freeze>package.txt

批量安装

pip install -r package.txt


二、zip安装包

python setup.py install

c++版本错误


三、WHL包

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

pip install wheel


四、pycharm

file--->settings--->project---->project Interpreter---->  +   ---->pymysql---->install package

猜你喜欢

转载自blog.csdn.net/g_optimistic/article/details/88553086
今日推荐