简体   繁体   English

Raspberry Pi B+“没有名为 vlc 的模块”

[英]Raspberry Pi B+ “no module named vlc”

I've installed the vlc player for raspberry and the vlc module for python on my b+ like this:我已经在我的 b+ 上安装了用于 raspberry 的 vlc 播放器和用于 python 的 vlc 模块,如下所示:

sudo apt-get install vlc
sudo pip install python-vlc

of course with update and even upgrade of the raspi.当然随着raspi的更新甚至升级。

But every time i try to但每次我尝试

import vlc

in the python shell, i get the error "no module named 'vlc'"在 python shell 中,我收到错误“没有名为‘vlc’的模块”

has anyone an idea of a solution to this?有没有人有解决这个问题的想法?

thanks in advance!提前致谢!

Just to make sure no one misses the answer, since this fixed it for me:只是为了确保没有人错过答案,因为这为我解决了这个问题:

OP mentioned this in the comments above: OP 在上面的评论中提到了这一点:

i solved the problem by myself: raspbian (jessie) has python 2.7 and 3.4 preinstalled at the same time and to install something for 3.4 version i have to use pip3.我自己解决了这个问题:raspbian (jessie) 同时预装了 python 2.7 和 3.4,要安装 3.4 版本的东西,我必须使用 pip3。 Otherways it will be installed on 2.7否则它将安装在 2.7 上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM