Pycharm with Anaconda Q&A(always continue)

Pycharm with Anaconda Q&A(always continue)

1. Anaconda无法升级

Anaconda无法升级

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/linux-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

ans:

将官方源更改为国内源(清华源在19年下半年已经恢复使用)

方法:

修改.condarc文件内容为

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true

PS:

Anaconda升级方法

  1. (windows)在开始界面打开(对应环境的)Anaconda prompt

  2. conda update conda,先升级通用包管理器conda

    conda是一个通用包管理器,可以允许你安装C语言或者python,与pip是部分竞争关系,pip只管python包,更多区别详见此处

  3. conda update anaconda,再升级发行软件Anaconda

 

2. Pycharm使用Anaconda环境

File👉settings👉Project Interpreter👉Add local(添加Anaconda安装位置的python.exe路径)

 

posted on 2020-11-21 16:41  G-Aurora  阅读(142)  评论(0编辑  收藏  举报