(自用)Python安装三方库方法(如:pandas)
vscode安装一些python库,提示错误
-
ERROR: Could not find a version that satisfies the requirement XXX (from v
-
ersions: none)
-
ERROR: No matching distribution found for XXX
-
WARNING: There was an error checking the latest version of pip.
解决以上问题其实非常简单:
pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com(库包名就是库的名字)
在安装库的时候,临时需要用到某个镜像,这里以清华大学镜像为例下载pandas库:
pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple/
来源:https://iteacher.blog.csdn.net/article/details/131187475?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7EPayColumn-1-131187475-blog-124774570.235%5Ev38%5Epc_relevant_anti_t3_base&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7EPayColumn-1-131187475-blog-124774570.235%5Ev38%5Epc_relevant_anti_t3_base&utm_relevant_index=1