1.python虚拟环境
python3自带虚拟环境模块venv,以后写代码就可以在这个虚拟环境中玩了
# python3 -m venv /root/mypy
# source /root/mypy /bin/activate
2.配置vim成为python-IDE
#创建vim插件工作目录
# mkdir -p ~/.vim/bundle/
# cd ~/.vim/bundle/
# git clone https://gitee.com/DataTraveler_0817/pydiction.git
# cp -r pydiction/after/ ~/.vim/
# cat > /root/.vimrc << EOF
filetype plugin on
let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
set ai
set et
set ts=4
EOF
3.配置安装pycharm
# pycharm官网下载
# mv pycharm-community-2021.3.1 /opt/pycharm
# 运行以下命令即可
# /opt/pycharm/bin/pycharm.sh
#配置成桌面图形方法:
yum -y install alacarte
logo在压缩包bin目录下,command写绝对路径/opt/pycharm/bin/pycharm.sh