前提是已经安装了pip, 没安装的看这篇文章.
已经安装了pip之后,命令输入升级pip:
1 |
python -m pip install --upgrade pip |
然后开始安装相关软件:
1 |
pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose |
然后设置一下path:
Linux:
1 2 |
# Consider adding this at the end of your ~/.bashrc file export PATH="$PATH:/home/your_user/.local/bin" |
OSX:
1 2 |
# Consider adding this at the end of your ~/.bash_profile file export PATH="$PATH:/Users/your_user/Library/Python/3.5/bin" |
Replace your_user with your username, and “3.5” with your Python version.