apt-get install vim #安装vim编辑器,乌班图默认是vi感觉很难用
touch test #创建用于测试的test文件
vim test.txt #创建并打开文件
vi test #使用vi编辑器打开文件# 安 i 进入编辑模式# 编辑完成 按esc :wq!保存并推出 或 :q!不保存退出
cat test #查看文件内容
pip install virtualenv
pip install virtualenvwrapper
# 进行如下配置
Add threelinesto your shell startup file (.bashrc, .profile, etc.) tosetthe location where the virtual environments should live, the location of your development project directories, andthe location ofthe script installed with this package:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
# 刷新
source ~/.bashrc or .profile or .bash_profile