winBlack

导航

(自用)Python安装三方库方法(如:pandas)

vscode安装一些python库,提示错误

  1.  
    ERROR: Could not find a version that satisfies the requirement XXX (from v
  2.  
    ersions: none)
  3.  
    ERROR: No matching distribution found for XXX
  4.  
    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

 

posted on 2023-10-26 10:53  白天不太黑  阅读(190)  评论(0编辑  收藏  举报