[英]Uninstall openCV on python 2 and python 3
OS: Ubuntu 18.04-LTS bionic操作系统:Ubuntu 18.04-LTS 仿生
i downloaded openCV using the command我使用命令下载了 openCV
sudo apt-get install python-opencv
from the link sudo apt-get install python-opencv
从链接
https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html
This installs openCV 4.2 onto both my python 2.7 & python 3.6.9.这会将 openCV 4.2 安装到我的 python 2.7 和 python 3.6.9 上。 I wanted to remove openCV and i used this command in terminal
sudo apt-get --purge autoremove python-opencv
When i call the version in terminal我想删除 openCV,我在终端中使用了这个命令
sudo apt-get --purge autoremove python-opencv
当我在终端中调用版本时
python
import cv2
cv2.__version__
only python2.7 openCV is removed but not python3.6.9.Please help me仅删除了 python2.7 openCV,但未删除 python3.6.9。请帮助我
If you have multiple python versions you can run cmd commands like this:如果你有多个 python 版本,你可以像这样运行 cmd 命令:
py -3.X -m pip uninstall opencv-python
So use this to try uninstalling opencv for every python version you have installed.因此,使用它来尝试为您安装的每个 python 版本卸载 opencv。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.