python第三方库的四种安装方法

时间:2023-03-08 20:40:23

1,直接pip install安装

2,在python-->default setting-->project interprer-->add

3,在这个链接里找到需要的包,下载

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

有whl文件的话,cmd中切换到该文件目录下,pip install该whl文件

4,没有whl文件,是压缩包,有setup.py文件

cmd中切换到该文件目录下,运行python setup.py install