zoukankan      html  css  js  c++  java
  • conda

    anaconda

    winerror 127找不到指定的程序

    现象**:conda install package 时,报错 winerror 127找不到指定的程序。

    环境:win 10 + anaconda 4.8.0 / python 3.7。

    解决(亲测):参考帖子https://github.com/conda/conda/issues/9003,具体做法是,当Anaconda/DLLS中libssl-1_1-x64.dll 和 anaconda3Libraryin中的libssl-1_1-x64.dll中的日期不一致时,使用Anaconda/DLLS中libssl-1_1-x64.dll 替换掉 anaconda3Libraryin中的libssl-1_1-x64.dll。

    conda下载缓慢

    修改用户目录下的’.condarc’文件添加镜像:

    vim ~/.condarc # 修改'.condarc' 文件
    
    ## 修改内容如下,可直接使用ctrl + insert 快捷键复制
    channels:
      - conda-forge
      - defaults
    show_channel_urls: true
    default_channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
    custom_channels:
      conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
    ssl_verify: true
    channel_priority: flexible
    

    conda升级

    conda update conda
    conda update anaconda
    conda update anaconda-navigator    //update最新版本的anaconda-navigator
    conda update xxx   #更新xxx文件包
    conda upgrade --all
    

    CondaHTTPError: HTTP 000 CONNECTION FAILED

    conda update xxx 显示CondaHTTPError: HTTP 000 CONNECTION FAILED

    解决方法:
    CondaHTTPError aka SSL module is not available error is caused by the missing/misplacement of libcrypto file in anaconda3/DLLs folder.
    From anaconda3Libraryin copy below files and paste them in anaconda3/DLLs:

    -   libcrypto-1_1-x64.dll
    -   libssl-1_1-x64.dll 
    

    Solving environment: failed with initial frozen solve.

    输入jupyter notebook,显示模块_ssl 不存在
    下一步打算安装ssl模块。

    执行conda install ssl, 显示Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    原因猜测:国内镜像源或官方自带的源未必包含所有的库,有些库还必须使用pip命令从https://pypi.org/获取

    使用pip install ssl。显示ssl模块中出现python3不兼容的语法, print语句后面没加括号。

    回到最初的问题: 输入jupyter notebook,显示模块_ssl 不存在
    而明显ssl模块太旧了,查找发现winopessl,这应该可以代替ssl。
    安装win64 OpenSSL MSI版本。
    安装地址https://slproweb.com/products/Win32OpenSSL.html

  • 相关阅读:
    DRF (Django REST framework) 框架介绍(2)
    DRF (Django REST framework) 框架介绍(1)
    Django中的Admin站点
    Django中的模板和表单
    Django数据库
    跨站请求伪造CSRF以及Flask中的解决办法
    Flask中的模板,Jinjia2介绍
    Flask中的上下文和flask-script扩展
    化学品撮合交易系统
    化学品产品查询系统解决方案
  • 原文地址:https://www.cnblogs.com/friedCoder/p/13395483.html
Copyright © 2011-2022 走看看