日日操夜夜添-日日操影院-日日草夜夜操-日日干干-精品一区二区三区波多野结衣-精品一区二区三区高清免费不卡

公告:魔扣目錄網(wǎng)為廣大站長提供免費收錄網(wǎng)站服務(wù),提交前請做好本站友鏈:【 網(wǎng)站目錄:http://www.ylptlb.cn 】, 免友鏈快審服務(wù)(50元/站),

點擊這里在線咨詢客服
新站提交
  • 網(wǎng)站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

>

目錄
  • 背景
    • 1: 創(chuàng)建環(huán)境時出現(xiàn)ProxyError
      • 解決方案
    • 2:安裝依賴時出現(xiàn)ProxyError
      • 解決方案:

背景

ProxyError: Conda cannot proceed due to an error in your proxy configuration.

使用的是組里的服務(wù)器,主要是在創(chuàng)建虛擬環(huán)境以及在已創(chuàng)建的虛擬環(huán)境中使用運行時都出現(xiàn)了同樣的ProxyError,主要是因為conda沒法處理代理,因此得要用戶手動修改**.condarc**文件。一共分為兩步

ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy configuration settings.

1: 創(chuàng)建環(huán)境時出現(xiàn)ProxyError

~$ conda create -n nn
Collecting package metadata (current_repodata.json): failed

ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.

解決方案

首先進入**.condarc**文件,通常為空

~$ vim .condarc

這里對**.condarc**的修改如下:

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
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
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

之后conda可以創(chuàng)建虛擬環(huán)境,本以為一切ok準(zhǔn)備安裝一些依賴包的時候,ProxyError再次出現(xiàn)。

2:安裝依賴時出現(xiàn)ProxyError

安裝pytorch時錯誤再次出現(xiàn)

~$ conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
Collecting package metadata (current_repodata.json): failed

ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.

解決方案:

同樣是對**.condarc**文件進行修改,首先查看自己的代理ip

~$ echo $http_proxy
http://...

復(fù)制打印出的代理ip地址并添加到**.condarc**配置文件中。(地址都是http,不是https)

proxy_servers:
  http: http://...
  https: http://...
ssl_verify: False

以上就是服務(wù)器安裝conda環(huán)境遇到代理PROXY問題及解決方案的詳細(xì)內(nèi)容,更多關(guān)于服務(wù)器安裝conda PROXY的資料請關(guān)注其它相關(guān)文章!

>

分享到:
標(biāo)簽:代理 安裝 服務(wù)器 環(huán)境 解決方案
用戶無頭像

網(wǎng)友整理

注冊時間:

網(wǎng)站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網(wǎng)站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網(wǎng)站吧!
最新入駐小程序

數(shù)獨大挑戰(zhàn)2018-06-03

數(shù)獨一種數(shù)學(xué)游戲,玩家需要根據(jù)9

答題星2018-06-03

您可以通過答題星輕松地創(chuàng)建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學(xué)四六

運動步數(shù)有氧達人2018-06-03

記錄運動步數(shù),積累氧氣值。還可偷

每日養(yǎng)生app2018-06-03

每日養(yǎng)生,天天健康

體育訓(xùn)練成績評定2018-06-03

通用課目體育訓(xùn)練成績評定