码迷,mamicode.com
首页 > 其他好文 > 详细

some bash commands

时间:2019-01-13 23:29:20      阅读:272      评论:0      收藏:0      [点我收藏+]

标签:json   配置文件   pretty   xen   flow   开关机   sci   nal   conf   

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

Ubuntu 的软件源配置文件是 /etc/apt/sources.list。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo gedit /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

 

安装并默认python3.6

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2

sudo update-alternatives --config python3

 

pip install -U pip

pip install virtualenv

 

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Cython

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter notebook

vi ~/.jupyter/jupyter_notebook_config.py

 

virtualenv --system-site-packages -p python3 ./venv
source ./venv/bin/activate
pip install --upgrade pip
pip list
pip install --upgrade tensorflow
pip install keras
vi ~/.keras/keras.json

 

 

sudo /etc/init.d/lightdm stop
nvidia-smi

 

sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb

sudo apt-get install -f

桌面右上角面板的   开关机的按钮  选择  系统设置

进入系统设置后 点击  语言支持     键盘输入方式系统中选择   fcitx

注销系统用户

some bash commands

标签:json   配置文件   pretty   xen   flow   开关机   sci   nal   conf   

原文地址:https://www.cnblogs.com/medsci/p/10264404.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!