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

原文:https://www.cnblogs.com/aixiao07/p/8806322.html

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


猜你喜欢

转载自blog.csdn.net/qq284489030/article/details/80855756