anaconda如何安装scrapy框架

打开Anaconda Prompt
1.安装scrapy
输入命令conda install scrapy
2.安装依赖包
输入命令conda install service_identity
切记:关闭fiddler

出现的错误
There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)’),)) -
需要检查是否开启fiddler,需要关闭fiddler

出现CondaHTTPError的解决方法:添加清华大学镜像
anaconda如何安装scrapy框架_第1张图片
首先,找到anaconda的配置文件:.condarc。一般,该文件在C:\Users\kg.condarc(kg是我的用户名,按照你自己的电脑来)然后打开该文件,修改为:(一定要把-defaults删掉,否则后面的安装会一直报错)

channels:

  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    show_channel_urls: true

你可能感兴趣的:(错误总结)