1. 程式人生 > >Anaconda安裝及更新失敗解決方式

Anaconda安裝及更新失敗解決方式

Anaconda

安裝anaconda從官網上下載慢,使用清華映象連結下載 https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
下載完之後,儘量的按照anaconda預設的行為安裝,打鉤的兩個地方都勾上,它會自動將bin目錄加入到環境變數path中去 
安裝完成後,使用系統命令列,可輸入 conda list 可以看到安裝了多少包。

接下來指定清華映象,步驟如下:

執行命令,生成.condarc檔案

1 2 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

Anaconda更新失敗

輸入命令列:conda search numpy C:\Users\Administrator>conda search numpy
Fetching package metadata ..... 錯誤資訊:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/main/win-64/repodata.json.bz2>
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.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/win-64/repodata.json.bz2 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000002AAC9D3FCF8>, 'Connection to repo.continuum.io timed out. (connect timeout=9.15)'))",),)

解決辦法:

檢視配置資訊 輸入命令:conda config –show 
顯示如下資訊: 
add_anaconda_token: True 
add_pip_as_python_dependency: True 
allow_softlinks: True 
always_copy: False 
always_softlink: False 
always_yes: False 
auto_update_conda: True 
binstar_upload: None 
changeps1: True 
channel_alias: https://conda.anaconda.org 
channel_priority: True 
channels: 

https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 
defaults 
client_ssl_cert: 
client_ssl_cert_key: 
create_default_packages: [] 
debug: False 
default_channels: 
https://repo.continuum.io/pkgs/free 
https://repo.continuum.io/pkgs/r 
https://repo.continuum.io/pkgs/pro 
https://repo.continuum.io/pkgs/msys2 
disallow: [] 
envs_dirs: 
- C:\Anaconda3\envs 
- C:\Users\surpass\AppData\Local\conda\conda\envs 
- C:\Users\surpass.conda\envs 
json: False 
offline: False 
proxy_servers: {} 
quiet: False 
shortcuts: True 
show_channel_urls: True 
ssl_verify: True 
track_features: [] 
update_dependencies: True 
use_pip: True 
verbosity: 0

輸入命令: conda - -help    //找到配置檔案.condarc的路徑 ,將上述顯示的配置資訊中-defaults所在行刪除儲存即可

顯示資訊如下: 
Options:

positional arguments: 
command 
info Display information about current conda install. 
help Displays a list of available conda commands and their help 
strings. 
list List linked packages in a conda environment. 
search Search for packages and display their information. The input 
is a Python regular expression. To perform a search with a 
search string that starts with a -, separate the search from 
the options with –, like ‘conda search – -h’. A * in the 
results means that package is installed in the current 
environment. A . means that package is not installed but is 
cached in the pkgs directory. 
create Create a new conda environment from a list of specified 
packages. 
install Installs a list of packages into a specified conda 
environment. 
update Updates conda packages to the latest compatible version. This 
command accepts a list of package names and updates them to 
the latest versions that are compatible with all other 
packages in the environment. Conda attempts to install the 
newest versions of the requested packages. To accomplish 
this, it may update some packages that are already installed, 
or install additional packages. To prevent existing packages 
from updating, use the –no-update-deps option. This may 
force conda to install older versions of the requested 
packages, and it does not prevent additional dependency 
packages from being installed. If you wish to skip dependency 
checking altogether, use the ‘–force’ option. This may 
result in an environment with incompatible packages, so this 
option must be used with great caution. 
upgrade Alias for conda update. See conda update –help. 
remove Remove a list of packages from a specified conda environment. 
uninstall Alias for conda remove. See conda remove –help. 
config Modify configuration values in .condarcThis is modeled 
after the git config command. Writes to the user .condarc 
file (C:\Users\Administrator\.condarc)by default

clean Remove unused packages and caches. 
package Low-level conda package utility. (EXPERIMENTAL)

在上面顯示資訊中找到config那一行,其 告訴了你的.condarc檔案的路徑,用記事本開啟並刪除-defaults那一行即可。

可正常使用:

C:\Users\Administrator>conda search numpy
Fetching package metadata .....
numpy                        1.6.2                    py26_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.6.2                    py27_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.6.2                    py26_4  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.6.2                    py27_4  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.0                    py26_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.0                    py27_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.0                    py33_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.1                    py26_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.1                    py27_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.1                    py33_0  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.1                    py26_1  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
                             1.7.1                    py27_1  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

相關推薦

Anaconda安裝更新失敗解決方式

Anaconda 安裝anaconda從官網上下載慢,使用清華映象連結下載 https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ 下載完之後,儘量的按照anaconda預設的行為安裝,打鉤的兩個地方都勾上,它會自動將b

Anaconda安裝三方包失敗解決方法(比如seq2seq,jieba等第三方包)

       Anaconda“Anaconda Prompt”指令conda 只能安裝python的官方包,而如同jieba,itchat等第三方包要使用pip去安裝。       Anconda安裝指令順序:       1. 首先採用指令:conda insta

chrome安裝更新失敗可能原因解決辦法

Chrome在安裝或更新時,可能會出現0x80070057、0x80040154、0x80004002、0x8004070c、0x80080005、0x80072EFD、0x80072EE2等錯誤,本文說明如何解決這些問題。 解決Chrome安裝或更新中出現的0x80070057等錯誤

1、【基礎環境安裝】conda httperror http none none for url none Anaconda更新失敗解決辦法

今日更新:優惠券、百度網盤搜尋引擎 it快速自學導航 so.kszixue.com(你懂的!) conda httperror http none none for url none Anaconda更新失敗 問題描述: 1、在conda安

Anaconda之二——Anaconda更新失敗解決辦法

晚上在自己的電腦上解除安裝了之前的Python2.X,準備重新安裝3.X版,在Python的官網上下載了3.5.X裝成功後準備繼續安裝Anaconda(在官網上要用迅雷下載,速度很快,如果是瀏覽器下

外網訪問XAMPP失敗 解決方式 XAMPP1.8.3

php tap pad log 版本 xtra ble eba 方式 xampp 訪問出現New XAMPP security concept New XAMPP security concept: Access to the requested

anaconda安裝環境變量配置

python http 系統變量 https 具體步驟 官網 安裝 scrip 出現      最近無聊想的學習一下python。 首先可以在官網上下載與自己電腦兼容的anaconda安裝包,網址如下https://www.continuum.io/downloa

開源郵件網關ScrolloutF1之一--安裝更新

服務器 郵件服務器 經過半年的測試,ScroloutF1終於可以正式上線了,整理下文檔。ScrolloutF1安裝Scrollout F1 需要一個幹凈的Debian系統,Ubantu或Debian都可以,現在最新版本的僅支持Debian 9及對應的Ubantu版本。使用root帳戶登陸到shell#

Nexus3.x安裝使用(Docker方式一鍵安裝

文章目錄 Nexus介紹 docker安裝Nexus3.x 安裝docker 安裝Nexus3 登入驗證 web介面使用 配置阿里雲公共倉庫 Maven配置使用Nexus Maven配置私服

MYSQL5.7 ZIP版本安裝相關問題解決

對於mysql5.7以後版本,沒有了my.ini檔案,這裡要自己新建。 安裝過程: 1、解壓zip檔案。例如D:\ProgramFile\mysql-5.7.19-winx64 2、新增環境變數。D:\ProgramFile\mysql-5.7.19-winx64\bin到pa

作業系統下載和作業系統更新失敗解決

Windows下載 說明: Consumer editions包括:家庭版、教育版、專業版;Business editions包括:企業版、教育版、專業版   下載作業系統網站: https://msdn.itellyou.cn/

關於VS code 安裝go 外掛失敗解決方案!!!

vs code 是一款非常好用輕量級的編輯器,並且有著很多外掛為我們開發作出了很大的貢獻 但是安裝外掛的時候會遇到一些問題  以golong為例   package golang.org/x/tools/go/gcexportdata: unrecognized im

slor6.6 在linux下的安裝以及啟動失敗解決辦法

一、前言: 環境:(注–>一切不說明環境的安裝教程都是耍流氓) centos7 solr6.6.5 jdk1.8 tomcat8 曾記得在solr4的時候曾經的一個外包專案需要使用到檢索功能折騰了差不多一個周,從lucene到solr

Mac VSCode 更新失敗解決方法

chown cache could not mic proc temp ras sudo asm Could not create temporary directory: 權限被拒絕 解決方式 sudo chown $USER ~/Library/Caches/com

python+各種包整合安裝Anaconda安裝使用教程

對於初學者,Python的安裝也許並不容易,尤其面臨python版本的困境,浪費了很多寶貴的時間,甚至讓人放棄的感覺,然而今天我們介紹一種簡便的安裝方法,可以完美的相容python2.7和python3.5,並集成了許多packages,免去配置環境變數的煩惱,正好結合作

docker學習之 安裝啟動錯誤解決

docker學習 Linux centos7下安裝docker需要 linux 核心在 3.10.0 以上, 檢視核心的方法為: # 檢視版本號 [[email protected] sysconfig]# uname -r 3.10.0-327.el7.

Eclipse SVN 衝突的 介紹 四種解決方式

1.為什麼會出現衝突 <1>兩個開發人員,Harry和Sally,分別從伺服器端下載了檔案A。 <2>Harry修改之後,A變成了A’,Sally修改之後,A變成了A”。 <3>Harry先一步提交,使伺服器端檔案的版本也變成了A’

ICP 3.1.0 用helm安裝更新chart

1、下載至你工作資料夾 https://raw.githubusercontent.com/IBM/charts/master/repo/stable/ibm-eventstreams-dev-1.0.0.tgz ibm-eventstreams-dev-1.0

Anaconda安裝虛擬環境搭建教程(linux)

1.下載:Anaconda3 https://www.anaconda.com/download/#linux 2.安裝命令: 切換至安裝包所在目錄,執行以下命令: bash Anaconda3-5.3.0-Linux-x86_64.sh 3.一路按回車

Android Studio 自動更新失敗解決辦法

Check Update一直提示Connection failed. Please check your network connection and try again,開始以為是由於G*W在搗亂,但是開啟VPN後還是無法更新,然後開始Google了一下找到了下面的解決辦法。 1、Mac OSX首先開啟F