zoukankan      html  css  js  c++  java
  • 虚拟环境部署过程中遇到的问题

    一、git相关

    具体的问题就是不能执行git clone,其实就是Git的任何命令都不能执行,查阅了一番资料发现可能是 gnutls 包的问题,解决的办法就是安装 openssl instead of gnutls.

    参考链接:https://github.com/paul-nelson-baker/git-openssl-shellscript

    但是这个问题解决完之后又出现了另一个问题,unable to access "url": could not resolve host: github.com, 估计是网络问题,这个问题暂且放下,后面还会遇到。

    二、miniforge

    git的问题太多复杂,就想着跳过这一步先安装miniforge,奈何只要有问题就怎么都绕不过去,安装好之后又遇到同样的问题。(一个小tips:安装好miniforge之后一定要重启终端,否则不会生效)

    最后发现是虚拟机网络配置没有设置好,晕死。调试好之前又配置了清华大学的镜像,最终问题就解决了。

    设置镜像:

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
    conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
    conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
     
    
    conda config --set show_channel_urls yes

    或者直接修改condarc文件
    vim ~/.condarc
    改为以下内容
    channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
    show_channel_urls: true
    ssl_verify: false
    

      

    参考链接: https://zhuanlan.zhihu.com/p/260034241

    对了,git的问题还是没有解决,ping也ping不通,链接也打不开,近期网络不太稳定吧。

  • 相关阅读:
    iOS设计模式之简单工厂模式
    Spring Boot Admin的使用
    使用Maven创建一个Spring MVC Web 项目
    SpringMVC简单项目配置
    web框架之Spring-MVC环境搭建
    搭建Spring4+Spring MVC web工程的最佳实践
    IntelliJ IDEA和Eclipse最常用的快捷键对应表:
    Cleanup failed to process the following paths错误的解决
    idea的修改文件变颜色
    IDEA下搜狗输入法输入中文时卡着不动的参考解决方法
  • 原文地址:https://www.cnblogs.com/zidiancao/p/14954681.html
Copyright © 2011-2022 走看看