[英]Install OpenCV for python building the source or with apt-get?
I'm working with OpenCV using Python on Linux. 我正在Linux上使用Python使用OpenCV。 I always installed OpenCV building the the Source with make.
我总是安装OpenCV用make来构建Source。 As you know there are many guides online which all say pretty much the same things.
如您所知,在线上有许多指南都说的差不多。 Now i found some guys which say to install OpenCV using apt-get with the command
现在我发现一些家伙说要使用apt-get命令安装OpenCV
sudo apt-get install python-opencv
须藤apt-get install python-opencv
Which are the difference between the two methods ? 两种方法有哪些区别? Can i just use the apt-get command ?
我可以使用apt-get命令吗? I looked around for an answer, but i still don't understand if i can avoid building OpenCV.
我四处寻找答案,但是我仍然不知道是否可以避免构建OpenCV。
Of course, it's much easier to use the apt-get
variant. 当然,使用
apt-get
变体要容易得多。
Some drawbacks are, that you might not get the most recent version hence the apt-get
package isn't updated as fast as the sources are. 一些缺点是,您可能没有获得最新版本,因此
apt-get
软件包的更新速度没有源代码快。 Furthermore you'll have a higher level of control according to modules that are going to be installed and the compile parameters, when using the " make
way". 此外,使用“
make
way”时,根据要安装的模块和编译参数,您将具有更高级别的控制。
If you just want an easy way, use the apt-get install
version. 如果您只想使用简单的方法,请使用
apt-get install
版本。 If you want control, flexibility and the most recent version, use the make
version and compile the source code according to your needs. 如果需要控制,灵活性和最新版本,请使用
make
版本并根据需要编译源代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.