首先如果直接敲

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
http://mirrors.163.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.163.com; Unknown error"
Trying other mirror.

好吧,换个软件源,按照网上的方法来,我发现我没有wget……

只能参考给centos重新安装yum的base-repo源手动下载对应处理器的版本,然后上传到linux上安装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_64libgnutls.so.30(GNUTLS_3_4)(64bit) is needed by wget-1.19.5-3.fc29.x86_64libidn2.so.0()(64bit) is needed by wget-1.19.5-3.fc29.x86_64libidn2.so.0(IDN2_0.0.0)(64bit) is needed by wget-1.19.5-3.fc29.x86_64libmetalink.so.3()(64bit) is needed by wget-1.19.5-3.fc29.x86_64libnettle.so.6()(64bit) is needed by wget-1.19.5-3.fc29.x86_64libnettle.so.6(NETTLE_6)(64bit) is needed by wget-1.19.5-3.fc29.x86_64libpsl.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

原来下的版本不对,还是去这里下载tar.gz的吧,解压后进入文件夹查看INSTALL文档中有提示安装方法,于是尝试,,结果没有安装gcc,尝试用yum去安装gcc是失败的,以为软件源的问题没解决啊!

[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

最后解决办法很简单,很粗暴,但是我竟然没有想到,,直接在网易源官网就可以下载repo文件,晕,赶紧下载下来,重命名成CentOS-Base.repo放到/etc/yum.repos.d/,还是不行

最后解决办法

最后对比了下可以正常通过yum安装软件的服务器的export出来的信息,发现其他正常服务器都有设置proxy,就这个服务器没有,果断把proxy设置搬过去,可以正常通过yum安装程序了,说明之前的repo根本没有问题!

之后就可以正常安装Anaconda了,需要注意的是刚装好是用不了conda,pip等命令的,需要添加路径

export PATH=$PATH:/root/anaconda3/bin

给服务器安装Anaconda遇到的问题和解决办法相关推荐

  1. anaconda安装scrapy报错解决办法

    今天在用anaconda安装scrapy的时候遇见个坑,现在将解决办法发出来,供大家参考使用: 问题描述: anaconda安装scrapy,使用 conda install scrapy 命令.安装 ...

  2. windows 下anaconda创建环境慢的解决办法

    在创建环境之前在Anaconda Prompt中运行以下代码,切换国内清华源 仅限windows系统 conda config --add channels https://mirrors.tuna. ...

  3. gen8装windows还是linux,HP Gen8 服务器安装操作系统的一些出错信息及解决办法

    hp的spp引导程序(F10引导)引导安装windows server 2008 R2,安装过程中出现Windows cannot read the  setting from the unatten ...

  4. hpgen8服务器进不了系统,HP Gen8 服务器安装操作系统的一些出错信息及解决办法...

    hp的spp引导程序(F10引导)引导安装windows server 2008 R2,安装过程中出现Windows cannot read the  setting from the unatten ...

  5. 给服务器安装系统时无法找到介质解决办法

    我们直接重启服务器一般按f11进入boot manager,选择one-shot bios menu /就是自定义选择一个boot进入,进去之后选择你的u或者光盘就可以直接安装了:

  6. Dell服务器安装Debian上不了网解决办法

    在一台Dell R210的服务器上安装了Debian10系统,但是安装完以后,却上不了网. 启动网卡提示Can't load firmware file "bnx2/bnx2-mips-09 ...

  7. linux服务器安装anaconda,然后远程使用jupyter

    linux服务器安装anaconda: 1.1 下载安装脚本: wget https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64. ...

  8. Sublime Text 3 import Anaconda 无法正常补全模块名解决办法

    Sublime Text 3 Anaconda配置 在安装Sublime Text3之后我们总会安装一些插件,比如Python的Anaconda自动补全插件.但是,装好之后发现import 时无法像别 ...

  9. pycharm+anaconda编译器运行程序时一直显示“ImportError: DLL load failed: 找不到指定的模块”的解决办法

    问题描述: python3.7 在Pycharm + Anaconda 不能用,装了包还报错:ImportError: DLL load failed: 找不到指定的模块,后面终于通过各种找到了解决p ...

最新文章

  1. WPF:数据绑定--PropertyChangeNotification属性更改通知
  2. C语言学习之有一个3X4的二维数组,要求用指向元素的指针变量输出二维数组各元素的值
  3. 分布式文件系统之Fastdfs是什么?
  4. mysql int 优化_MySQL数据类型优化—整数类型优化选择
  5. [ECMAScript] 说说你对async/await的理解?
  6. python 文本相似度_python实现余弦相似度文本比较
  7. UNIX网络编程——进程间通信概述
  8. plsql developer如何创建新用户(users)
  9. NGINX---一次阿里云宝塔开发flask经历
  10. MySQL 8.0窗口函数
  11. link_path_walk()分析
  12. 天道酬勤,仅仅两年,我便做上了那个测试老大···
  13. 通过Js来设置页面样式
  14. hdmi怎么支持2k分辨率_HDMI更新了!HDMI线用户忍受了一年的问题,终于能解决了...
  15. Java中的四个核心技术思想
  16. 最高法规定网络转载涉嫌侵权需担责 10月10日起施行
  17. 拯救剁手党,出点闲置改善生活吧!
  18. 2023必须收藏的16个Python接单平台,做私活爽歪歪!附100个爬虫源码,拿去吧你
  19. oracle substr clob,sql – 在CLOB上的SUBSTR的性能
  20. 取消小米笔记本插入耳机后弹框

热门文章

  1. 链表反转的两种思路及算法
  2. 4~20ma电流转电压
  3. es 2019 社区技术总结
  4. 8个问题读懂Yuga Labs将发行的比特币NFT TwelveFold
  5. 计算机系统及编程语言(底层思维)
  6. audio标签的使用方式
  7. 【游戏设计图形学】在地图上生成蜿蜒河流的两种方法
  8. 整数拆分、不同的二叉搜索树-代码随想录
  9. 数据分析Demo:广告点击数据分析
  10. android恢复出厂设置广播,如何恢复出厂设置您的Android TV | MOS86