source .bashrc
#首先先添加清华的镜像源$ conda config --add channels https://mirrors.tuna./anaconda/cloud/msys2/ conda config --add channels https://mirrors.tuna./anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.tuna./anaconda/pkgs/free/ conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna./anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna./anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna./anaconda/pkgs/free/
conda config --set show_channel_urls yes
升级conda $conda update conda
查看环境列表$conda env list conda info -envis
确认当前环境$conda info -envis
检查python版本$conda search --full --name python
创建环境$conda create -n tts python=3.6
激活环境$source activate tang
关闭环境$source deactivate
pip 升级安装的软件:pip3 install --upgrade deepspeech
环境插件$
pip install numpy -i https://pypi.douban.com/simple
pip install -e ".[train]" -i https://pypi.douban.com/simple
pip install -i https://pypi.tuna./simple some-package
第三方插件安装$ conda install -n tts numpy
删除环境$conda remove -n flowers --all
查看安装哪些包 $conda list
#安装要求的插件列表 pip install --user -r requires.txt
source activate poetry #进入环境 $
awk #文本处理的命令
sort #文本排序
服务器安装第三方包$pip install 名字 -i https://pypi.douban.com/simple
清华镜像 -i https://mirrors.tuna./
===============================================================================================
docker操作
创建环境$ nvidia-docker run -it --name=container_AI09 -v /root/yel:/root/yel cuda8_cudnn5_tf1.9_py3
nvidia-docker run --name paintschainer --r -p 8000:8000 -e PAINTSCHAINER_GPU=1 liamjones/paintschainer-docker
docker ps -a #查看环境列表
查看IP:ifconfig
运算$python 文件名
如果提示docker未启动 $docker start container_AI06 #docker名
nde AI06 进入环境
docker exec -it paintschainer /bin/bash
==============================================================================================
图形界面$进入ctrl+alt+F7
虚拟控制台进入$ctrl+alt+F2 设置背景setterm -inversescreen on,