[TOC]
1 | $ cd ~ |
Operation System
Ubuntu
1 | $ # 发行版本号 (a,b) |
1 | $ cat /etc/issue |
Cent OS
1 | $ # 查看 Cent OS 系统版本 |
* refs
如何查看ubuntu的内核版本和发行版本号?
centos系统查看系统版本、内核版本、系统位数、cpu个数、核心数、线程数
Anaconda, Python
Anaconda
Download:
mirrors.thu
Anaconda3-5.2.0-Linux-x86_64.sh
Install:
1 | ~$ cd ~/Software |
Python
1 | ~/Software$ rm -r Anaconda3-5.2.0-Linux-x86_64.sh |
1 | $ # 使用 Anaconda 创建其他 Python 环境 |
conda
1 | ~/GitHubLab/ActivityNet/Crawler/Kinetics$ conda env create -f environment.yml |
* refs
Ubuntu安装anaconda 介绍、安装、配置
ubuntu16.04安装和使用Anaconda3(详细)
Python 环境
Python 环境 | 切换 anaconda 源
CUDA, cuDNN (NVIDIA Driver)
check NVIDIA driver
1 | ~/Software$ nvidia-smi |
Download
Download CUDA Archive:
CUDA Toolkit 10.0 Archive
Select Target Platform:
Click: Operating System, Architecture, Distribution, Version, Installer Type
- Linux, x86_64, Ubuntu, 18.04, runfile (local)
- Linux, x86_64, CentOS, 7, runfile (local)
Download Installers for Linux ….:
Base Installer (Download)
Download cuDNN Archive:
cuDNN latest
cuDNN Archive
Download cuDNN v7.6.4 [September 27, 2019], for CUDA 10.0
- cuDNN Library for Linux
- // or
- // Download cuDNN v7.4.2 [Dec 14, 2018], for CUDA 10.0
CUDA
install .run:
1 | ~/Software$ ls |
config .bashrc:
1 | ~/Software$ vim ~/.bashrc |
end of .bashrc file:
1 | # added by Anaconda3 installer |
cuDNN
1 | ~/Software$ ls |
* refs
How to check NVIDIA driver version on your Linux system
2 Ways to Install Nvidia Driver on Ubuntu 18.04 (GUI & Command Line)
Install Python Packages
Expected packages
with Anaconda:
1 | jupyter == 1.0.0 |
custom:
1 | opencv-python |
Before custom installation
1 | ~/Software$ cd .. |
pip install
1 | $ |
custom
1 | ~$ pip config global.index-url # same as: pip config |
pytorch
1 | ~$ # pip install torch torchvision |
tensorflow-gpu
tensorflow-gpu 2.0.0-beta0
(1) failed due to “install msgpack, wrapt”
1 | ~$ # pip install tensorflow-gpu # keras |
(2) succeed install, faile import
1 | ~$ pip install msgpack |
1 | ~$ pip install tensorflow-gpu==2.0.0b0 |
1 | ~$ python |
(3) warning import
1 | ~$ pip install numpy==1.16.2 |
(4) succeed import, failed no cuda
1 | ~$ pip install -U h5py |
(5) succeed
错因: 之前的 LD_LIBRARY_PATH 误写成 LD_LIBARAY_PATH 了
错误写法: export LD_LIBARAY_PATH=$LD_LIBRARY_PATH:$HOME/Software/cuda-10.0/lib64/
正确写法: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Software/cuda-10.0/lib64/
1 | ~$ LD_LIBRARY_PATH |
refs
安装Tensorlayer报错“Cannot uninstall ‘xxx’”的解决方案
FutureWarning: Deprecated numpy API calls in tf.python.framework.dtypes
FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated
TensorFlow Official: GPU support
ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
【UBUNTU深度学习环境】ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
PyTorch使用tensorboardX
Pytorch使用tensorboardX可视化。超详细!!!
官方总结 tensorboardX 使用教程
ubuntu 18.04 + Tensorflow-gpu 2.0环境搭建
TensorFlow 2.0 Alpha的初步尝试:安装及填坑小记
Issue: ssh 新终端必须先 source .bashrc 才能正常用自己的 python
important:
社区环境搭建 使用ssh登入ubuntu不执行.bashrc解决方法
open a terminal:
1 | vim ~/.bash_profile |
in .bash_profile file:
1 | # if running bash |
new terminal:
1 | python |
refs:
ubuntu 用户修改.bashrc之后,每次登录需要运行source命令才生效
解决.bashrc文件每次打开终端都需要source的问题
ubuntu12.04 .bashrc设置后无效
References
update posts
save codes
1 | ubuntu@ubuntu-VirtualBox:~/eustomaqua.github.io$ git status |
post notes
1 | ubuntu@ubuntu-VirtualBox:~/eustomaqua.github.io$ hexo g |
clean
1 | ubuntu@ubuntu-VirtualBox:~/eustomaqua.github.io/hexo-next$ hexo clean |