給伺服器安裝Anaconda遇到的問題和解決辦法

2021-08-26 02:15:58 字數 3757 閱讀 9659

首先如果直接敲

bash anaconda3-5.2.0-linux-x86_64.sh
告訴我已存在

error: file or directory already exists: '/root/anaconda3'

if you want to update an existing installation, use the -u option.

需要使用

bash anaconda3-5.2.0-linux-x86_64.sh -u
之後提示沒有安裝bunzip2,使用以下指令安裝,然後還是報錯,這次是軟體源有問題

[/root/anaconda3] >>>

prefix=/root/anaconda3

anaconda3-5.2.0-linux-x86_64.sh: line 350: bunzip2: command not found

tar: this does not look like a tar archive

tar: exiting with failure status due to previous errors

[root@ml-cent-3 result]# yum install -y bzip2

loaded plugins: fastestmirror

[errno 14] curl#6 - "could not resolve host: mirrors.163.com; unknown error"

trying other mirror.

好吧,換個軟體源,按照網上的方法來,我發現我沒有wget……

[root@ml-cent-3 result]# rpm -ivh wget-1.19.5-3.fc29.x86_64.rpm

warning: wget-1.19.5-3.fc29.x86_64.rpm: header v3 rsa/sha256 signature, key id 429476b4: nokey

error: failed dependencies:

libgnutls.so.30()(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libgnutls.so.30(gnutls_3_4)(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libidn2.so.0()(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libidn2.so.0(idn2_0.0.0)(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libmetalink.so.3()(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libnettle.so.6()(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libnettle.so.6(nettle_6)(64bit) is needed by wget-1.19.5-3.fc29.x86_64

libpsl.so.5()(64bit) is needed by wget-1.19.5-3.fc29.x86_64

rpm -ivh wget-1.19.5-3.fc29.x86_64.rpm --force --nodeps

# 安裝後

# wget

wget: error while loading shared libraries: libidn2.so.0: cannot open shared object file: no such file or directory

[root@ml-cent-3 wget-1.19]# file install

install: ascii text

[root@ml-cent-3 wget-1.19]# vi install

[root@ml-cent-3 wget-1.19]# ./configure && make && make install

configure: configuring for gnu wget 1.19

checking for a bsd-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(make)... yes

checking whether make supports nested variables... yes

checking build system type... x86_64-pc-linux-gnu

checking host system type... x86_64-pc-linux-gnu

checking whether make supports nested variables... (cached) yes

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/etc/result/wget-1.19':

configure: error: no acceptable c compiler found in $path

see `config.log' for more details

最後對比了下可以正常通過yum安裝軟體的伺服器的export出來的資訊,發現其他正常伺服器都有設定proxy,就這個伺服器沒有,果斷把proxy設定搬過去,可以正常通過yum安裝程式了,說明之前的repo根本沒有問題!

之後就可以正常安裝anaconda了,需要注意的是剛裝好是用不了conda,pip等命令的,需要新增路徑

export path=$path:/root/anaconda3/bin
** 

Linux伺服器安裝Anaconda

流程 bash name.sh 安裝後此時沒有 base 在前方,配置路徑 將anaconda的bin目錄加入path echo export path anaconda3 bin path bashrc 更新bashrc以立即生效 source bashrc 換源 新增anaconda的tuna映...

在伺服器中安裝anaconda3

記錄學習,請勿打賞 alt o 連線伺服器 ctrl alt 斷開連線 repo.anaconda.com archive anaconda3 2020.07 linux x86 64.shbash anaconda3 2020.07 linux x86 64.sh3.修改環境變數 vi bashr...

linux伺服器安裝Anaconda3和虛擬環境

在檔案目錄下執行 bash anaconda3 2020.07 linux x86 64.sh 一路回車和yes 驗證是否安裝成功,出現如下表明未匯入環境 yy lyb nf5280m5 conda list conda 未找到命令 匯入環境 輸入如下命令,開啟配置檔案 vim bashrc i 插...