安装命令
sudo apt-get install xxx
sudo pip install xxx
卸载
sudo apt remove 软件名
更新可用软件包系列 sudo apt update
更新已安装的包 sudo apt upgrade
pip list
pip3 -V
更新pip
python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install opencv-python==3.3.0.9 -i https://pypi.douban.com/simplesu/
查看python地址
import sys
sys.path
更改默认python
#罗列出系统里所有的python版本
ls /usr/bin/python*
#移除目前python命令,这个移除只是移除python命令的软连接,并没有把python删除
sudo rm /usr/bin/python
#重新建立软连接
sudo ln -s /usr/bin/python3.5 /usr/bin/python
查看Numpy版本
python -c "import numpy; print numpy.version.version"
或
python -c "import numpy; print numpy.__version__"
查看Numpy安装路径
python -c "import numpy; print numpy.__file__"
conda
conda create -n xx_youname_xxx pip python=3.6
scoure activate xx_youname_xxx
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes