美文网首页
Ubuntu 16.04配置

Ubuntu 16.04配置

作者: 郝翔 | 来源:发表于2017-05-30 17:45 被阅读23次

Python
在16.04中默认存在3.5与2.7版本的python,可以通过这样来使用

# Python 2:
python a.py
# Python 3:
python3 a.py 

可以这样来安装pip

# Python 2:
sudo apt-get install python-pip
# Python 3:
sudo apt-get install python3-pip

类似使用Python那样使用pip

# Python 2:
pip
# Python 3:
pip3

如果和我一样,日常只使用3.5版本,可以直接在shell中直接输入下列字符,即通过别名来配置:

alias python='/usr/bin/python3'
alias pip='/usr/bin/pip3'

nvm && zsh
服务器端与客户端均可以安装oh my zsh,安装之后会发现 nvm commad not found,此时需要重新加载nvm

export NVM_DIR="/Users/me/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

相关文章

网友评论

      本文标题:Ubuntu 16.04配置

      本文链接:https://www.haomeiwen.com/subject/qxmrfxtx.html