通信云平台环境搭建
2020-07-18 04:28
796 查看
apt-get update 失败?
root@c-z2twl:~# apt-get update Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease Temporary failure resolving 'ppa.launchpad.net' Err:3 http://archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/xenial/InRelease Temporary failure resolving 'ppa.launchpad.net' W: Some index files failed to download. They have been ignored, or old ones used instead.
vim /etc/resolv.conf
修改为
nameserver 172.1.0.200 search 10011016-name.svc.cluster.local. svc.cluster.local. cluster.local. options ndots:5 nameserver 8.8.8.8 nameserver 223.5.5.5 nameserver 223.6.6.6
之后 apt-get update成功
升级pytorch
下载anaconda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2020.02-Linux-x86_64.sh
开始安装
bash Anaconda3-2020.02-Linux-x86_64.sh
安装完成后,加入环境变量
export PATH=$PATH:/data/anaconda3/bin source ~/.bashrc
之后安装pytorch
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
(base) root@c-z2twl:~# python Python 3.7.6 (default, Jan 8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import torch >>> torch.__version__ '1.4.0' >>>
撒花✿✿ヽ(°▽°)ノ✿
相关文章推荐
- CentOS5.5下搭建Eucalyptus1.6.2云平台环境(转)
- 应用程序平台应用之星:在线手机应用开发平台 不用搭建环境
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- cocos2dx环境搭建(android平台)
- Hexo+GitHub搭建静态博客平台(一)-环境配置及建站
- 基于windows平台的Android原生(Native)C开发环境搭建
- linux下arm平台Qt编译环境搭建与解析
- 使用花生壳实现内网映射,搭建Windows平台下的服务器环境
- ubuntu12.04环境下Floodlight+mininet搭建OpenFlow测试平台
- 软件平台环境搭建
- 区块链开发(一)Windows平台搭建基于以太坊的区块链开发环境
- Windows平台上安装搭建iPhone/iPad的开发环境
- 大数据平台 Hadoop 的分布式集群环境搭建
- 移动平台开发大比拼,android,meeGo(包含环境搭建问题解决),bada(包含环境搭建问题解决),OPhone......
- Windows和Ubuntu平台Android +JAVA 环境搭建
- Spark2.x学习笔记:6、在Windows平台下搭建Spark开发环境(Intellij IDEA)
- Eclipse(RustDT) + Racer + Windows 平台Rust开发环境搭建
- Hadoop平台搭建使用系列教程(5)- 网络以及初始统一环境配置
- 【PHP自学笔记1】如何搭建配置PHP环境、云平台发布、第一个HelloWorld程序