亲测小白系列之-python pip opencv pip3 tkinter

  • mac版本
    自带python包位置
    /Library/Python/2.7/site-packages/
    安装python3包位置
    /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
    安装pip
    sudo easy_install pip
    安装opencv
    pip install opencv-pythonsudo pip install opencv-python
    提示没安装 nose tornado时
    sudo pip install nose
    sudo pip install tornado
    或者
    sudo pip install nose tornado
    或者
    sudo pip install --user nose tornado
    升级numpy模块
    sudo pip install numpy --ignore-installed numpy
    最后安装opencv
    sudo pip install opencv-python
    注意如果提示Consider using the --user option or check the permissions.
    需要再install后加 --user 或者 加sudo
    pip install --user opencv-python
    python2是Tkinter python3是tkinter,测试 import tkinter import Tkinter
    sudo pip3 install nose
    sudo pip3 install tornado
    sudo pip3 install numpy
    sudo pip3 install opencv
    卸载
    pip show packagename 查看指定的安装包信息
    pip list 列出所有的安装包
    pip list –outdated 检测更新
    pip install --upgrade packagename 升级包
    pip uninstall packagename 卸载包

你可能感兴趣的:(技术)