No Module Named Pyqt5 Qtmultimedia

本来使用sublime text3也可以做python的IDE,但是我也想试试pyzo。 安装的过程很和平。没有任何报错 点击(此处)折叠或打开 apt-get. I overclocked mine at 900 MHz and it took 38 hours to compile and the temperature was a steady 51 C - 54 C (with case, no heat-sinks, no fans). python3-rope does not exist in Fedora since the python3 port is not complete yet. Many add-on modules are either feature-complete and exist for backwards compatibility, or are only applicable to certain platforms. python 在運行時不會返回任何錯誤: import PyQt5 但是如果我嘗試運行: from PyQt5. We use cookies for various purposes including analytics. path list of the Python interpreter inside FreeCAD. Checking to see if the QtHelp module should be built 但是检查的结果是不用安装QtHelp,具体是怎么判断的就不是很清楚了: These PyQt modules will be built: QtCore, QtGui, QtMultimedia, QtNetwork, QtDBus, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtXml, QtXmlPatterns, QtDesigner. 2以添加Sqlite3模块了(模糊记得Zim Desktop Wiki也应该需要)…下次编译Liddy’s Linux 8. QtWidgets. Dabei hab ich PyQt5 und PyQt5. CSV 文件,該文件既適用於 python 2. Using Qt version 5. decorator fehlt. QtMultimedia To include the definitions of the module’s classes, use the following directive: import PySide. py py2app running py2app creating /Users/g/Desktop/gcorptestpy2app/build creating /Users/g/Desktop/gcorptestpy2app. How to add QtMultimedia to PyQt5. The second line shows you where the QtCore module is located. QtWebEngineWidgets' I think there is a. 0,大数据,ai人工智能-综合技术-德云社区. QtWebEngineWidgets import ( ImportError: No module named 'PyQt5. Anaconda3から導入したPython環境でPyQt5が使えない. 配置eclipse+tomcat注意点 1712. centos安装eric4出现"No module named QtHelp"的解决办法 本文转载自 oMingZi12345678 查看原文 2013/07/11 5 解决 / module / pyqt / centos 收藏. QtWebEngineWidgets' Я думаю, что пакет отсутствует, но какой? python3-pyqt5. Calling a function of a module by using its name (a string) 399. 错误类型:no module named PyQt5. War alles super gut, bis ich vorgestern versucht habe, ein Projekt mit QT(5) zu starten. ModuleNotFoundError: No module named 'PyQt5. Even if they are full of regex :P > > If there is no interface, I?d rather not even have a fix name, or people > will think updates are specified somehow. PyQt is a set of Python bindings for Qt that are dual-licensed under the GPL (version 2 and 3, with additional license exceptions) and a commercial license. 本来使用sublime text3也可以做python的IDE,但是我也想试试pyzo。 安装的过程很和平。没有任何报错 点击(此处)折叠或打开 apt-get. QtCore import QCoreApplication, QUrl from PyQt5. Raspbian and PyQt5 ImportError: No module named ‘PyQt5. PyQt5 application is not working (just cmd flashing) when built with PyInstaller or py2exe, missing dll's. I'd suggest running the python stuff from source and copy the artifacts that you do need (eg; CuraEngine). 3 + python 3. QtWebEngineWidgets' I think there is a. Get the SourceForge newsletter. Как построить против qt 5. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. PyQt is a set of Python bindings for Qt that are dual-licensed under the GPL (version 2 and 3, with additional license exceptions) and a commercial license. I don't really know what caused the crash you have now. qtmultimedia-dbg Python bindings for Qt5's Multimedia module (debug extensions) python-pyqt5. ImportError: No module named 'PyQt5. No module named 'PyQt5. Calling a function of a module by using its name (a string) 399. 04 Plasma QT5 and this python code was written for QT4? Code: Select all. This example shows how to use the QAudioOutput class, introduced in Qt 4. so QtMultimedia. QtMultimediaWidgets 其他模块可以正常导入例如 PyQt5. PyQt5 application is not working (just cmd flashing) when built with PyInstaller or py2exe, missing dll's. 12 documentation to find public API Qt types and test if the types are present in the PySide2 package. QtMultimedia'. py output log (verbose). ImportError: No module named 'PyQt5' Generally a good idea is to do a search on the Pi. Hi @jnc, I've just seen your dump and list (thanks for providing them), and I'm sorry to tell you that at the present time Pymakr doesn't play nice in *nix with Qt5 installed. Qt' Related. QtCore import QCoreApplication, QUrl from PyQt5. No module named 'PyQt5. QtWebKit installiert. js jquery 1708. I can't leave a comment, not enough reputation, but thought I should mention this in case it helps anyone using VirtualEnv: In my case (Raspbian on a Raspberry Pi 3, Python 3 in a virtual environment) the answer provided by CharlieHorse is the only one which worked as I could not get. qtmultimedia-dbg - Python 3 bindings for Qt5's. 2的Sqlite3模块未有编译,只好重新编译一遍Python-3. Stone Segmentation fault (core dumped) ----- Obviously there's at least one missing piece somewhere, but I'm not sure if this is a missing build dependency, a missing config file, a missing Manager/farm queue instance, or something else. 0,大数据,ai人工智能-综合技术-德云社区. ImportError: No module named 'PyQt5' Generally a good idea is to do a search on the Pi. Vous devez avoir un compte Developpez. 6 в разработке, есть только девелоперские снапшоты. QtWebEngineWidgets' I think there is a. Началось всё с того, что я захотел установить Python3 и Eric5 на свою Kubuntu 12. You will need Python 2. If you have purchased a commercial PyQt license then please login to your account using the details sent to you at the time of purchase. 摘要: python missing_bindings. ImportError: No module named blur. qtmultimedia-dbg - Python 3 bindings for Qt5's. Turn on your Raspberry Pi and log in. iOS系统越狱检测 1709. 12 documentation to find public API Qt types and test if the types are present in the PySide2 package. Many add-on modules are either feature-complete and exist for backwards compatibility, or are only applicable to certain platforms. It opens and works on the Mac but when I tried to open in my PC it doesn't work. 0" specified in my QMLs but the qmlimportscanner doesn't seem to see them. QtMultimedia To include the definitions of the module’s classes, use the following directive: import PySide. Get the SourceForge newsletter. PyQt5 导入失败;pycharm无法识别pyqt5的问题(安装成功后在pycharm运行出现 No module named 'PyQt5') 10-11 阅读数 4167 首先我们先看报错: 这里说明一下,我用的是Windows7系统,我在出来你这个问题之前,是成功安装好了PyQt5,包括sip、PyQt5、PyQt5-tools都已经配置好(PyQt5. Any help would be greatly appreciated. mk cfgtest_phonon. QtMultimedia' Is the problem maybe that I'm using kubuntu 15. If you have purchased a commercial PyQt license then please login to your account using the details sent to you at the time of purchase. pyinstaller output: debugging why QtQuick is being considered for inclusion - output. Playing a sound with QtMultimedia. Dabei hab ich PyQt5 und PyQt5. This is a "known issue". QtMultimedia import QMediaPlayer ImportError: No module named 'PyQt5. こちらの記事を読んでPyQt5をWindows10 64bitに入れました。 PyQt5とpython3によるGUIプログラミング[0] 発生している問題・エラーメッセージ. PyQt5 Download. No module named QtHelp. PyQt5 wheels are specific to a particular version of Python. Checking to see if the QtGui module should be built Checking to see if the QtHelp module should be built Checking to see if the QtMultimedia module should be built. JavaCompiler编译的时候有时会返回NULL 1711. 2 : no module available + pyuic5 cannot find PyQt5. QtWidgets import QApplication. The contents of this page should probably be merged with the PyQt page and this page made to redirect there. Each time Analysis detects an import, it looks for a hook file with a matching name. QtWebEngineWidgets: ImportError: No module named 'PyQt5. python 在運行時不會返回任何錯誤: import PyQt5 但是如果我嘗試運行: from PyQt5. 0 answers 1 views 0 votes How to draw QtGraphicsView on Top of QVideoWidget. I'd suggest running the python stuff from source and copy the artifacts that you do need (eg; CuraEngine). QtCore PyQt5. 2-raspberry on both the workstation and the mounted image. It contains a menu bar for opening the video file. 2的Sqlite3模块未有编译,只好重新编译一遍Python-3. No module named 'PyQt5. Pymakr under Linux Fedora. qtwebkit is installed. QtMultimedia import QMediaPlayer ImportError: No module named 'PyQt5. py in a folder where the Analysis object looks for hooks. QtWidgets import QApplication. Ich habe unter Eric 6 begonnen, mich in Python (3) einzuarbeiten. When one is found, Analysis imports the hook's code into a Python namespace. Maybe even. Qt Development. raspberry_sch. JavaCompiler编译的时候有时会返回NULL 1711. I am using Fedora 28. As I am not very familiar with OOP (but I'm trying to be!), I hope somebody. ImportError: No module named PytQt5. It contains a menu bar for opening the video file. mk cfgtest_phonon. 12 documentation to find public API Qt types and test if the types are present in the PySide2 package. Debian Bug report logs - #779369 pyqt5-examples missing dependencies python3-pyqt5. 5 * OS: Ubuntu 18. 10 but "QtHelp" doesn't build at all this happen with PyQt 4. Highly unlikely, see the discussion in #2144. i use python 3. 接着输入 gnome-terminal 该指令是查看出现的终端错误,我有两处错误 错误一:No module named "apt_ ubuntu16. [ 128s] Checking to see if the phonon module should be built [ 128s] /usr/bin/qmake -o cfgtest_phonon. Each time Analysis detects an import, it looks for a hook file with a matching name. 创建或者清理PyQt5编译环境,并根据常规过程构建它。 替代 如果这个修复不能解决问题,安装libgl1-mesa-glx包( GLX运行时) 和 libgl1-mesa-dri ( 绘图加速器),如果它们也是缺失的,并按照收费的Build指令进行。. ImportError: No module named PytQt5. 04 LTS/bionic, I am trying to compile QGIS 3. A few months ago, I wrote about creating a simple MP3 Player using wxPython's MediaCtrl widget. 5, windows 10 64bit Thanks! error: from PyQt5. 6 появился в дереве. js jquery 1708. I try to run a python script using PyQt5 QtWebEngineWidgets but it throws errors: from PyQt5. *Нахожусь на начальной стадии практических умений на Python3. Решено: Нужна подсказка с ". 我在PyQt方面遇到一些麻烦。 我通过 Homebrew 安装了PyQt4和 PyqQt5,我计划为我正在使用的特定项目使用 PyQt4. Copy link Quote reply Ssunhx commented Oct 22, 2018. QtCore module with Prefix set to which is assumed to be relative to the directory that the PyQt5. Checking to see if the QtHelp module should be built 但是检查的结果是不用安装QtHelp,具体是怎么判断的就不是很清楚了: These PyQt modules will be built: QtCore, QtGui, QtMultimedia, QtNetwork, QtDBus, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtXml, QtXmlPatterns, QtDesigner. android 自定义dialog 1715. qtmultimedia (5. 创建或者清理PyQt5编译环境,并根据常规过程构建它。 替代 如果这个修复不能解决问题,安装libgl1-mesa-glx包( GLX运行时) 和 libgl1-mesa-dri ( 绘图加速器),如果它们也是缺失的,并按照收费的Build指令进行。. 接着输入 gnome-terminal 该指令是查看出现的终端错误,我有两处错误 错误一:No module named "apt_ ubuntu16. Somit kann ich auch nicht einfach den String vergleichen, da ich das Programm sonst nicht funktioniert wenn eine andere Webcam angeschlossen ist. Dabei hab ich PyQt5 und PyQt5. Woran liegt das? Vielen Dank für eure Hilfe im Voraus. Как построить против qt 5. 2以添加Sqlite3模块了(模糊记得Zim Desktop Wiki也应该需要)…下次编译Liddy's Linux 8. Но PyQt пока остается 5. I am facing the same trouble as several people the release compatibility between SIP and PyQT. PyQt5 Download. The os module provides the functionality to interact with the operating system. qtmultimedia-dbg - Python 3 bindings for Qt5's. The os module provides tools for programmers that deal with files, paths, directories, and data. 请问各位大虾: 我在做工程时候,报错找不到QTwidgets,在pro文件中已经加入qt +=widgets 为什么在main函数中还是找不到Qwidget. Package: python3-pyqt5. QtWebEngineWidgets' Я думаю, что пакет отсутствует, но какой? python3-pyqt5. Environment * Python version: 3. Type 'no' to decline the terms of the license. Raspbian and PyQt5 ImportError: No module named 'PyQt5. The QtMultimedia module provides low-level multimedia functionality. conf file is embedded in the PyQt5. We use cookies for various purposes including analytics. by Bonana Last Updated September 25, 2019 20:26 PM. Mybatis源码解读-Executor 1713. {qtquick, qtopengl, qtmultimedia, qtsvg} etc. Как построить против qt 5. 0] No module named 'PyQt5. Trying to build the latest PyQt5. QtMultimedia. PyQt is a set of Python bindings for Qt that are dual-licensed under the GPL (version 2 and 3, with additional license exceptions) and a commercial license. Checking to see if the QtGui module should be built Checking to see if the QtHelp module should be built Checking to see if the QtMultimedia module should be built. QtWebEngineWidgets' Leider kann ich das nicht installieren. QtCore module will be installed in. PyQt5的类被划分在几个模块中,下面列出了这些模块: QtCore 模块包含了非GUI的功能设计。这个模块被用来实现时间,文件和目录,不同数据类型,流,URL,mime类型,线程和进程。. 接着输入 gnome-terminal 该指令是查看出现的终端错误,我有两处错误 错误一:No module named "apt_ ubuntu16. Mybatis源码解读-Executor 1713. All of the columns are sortable; give them a click!. linux 版本source insight 1710. Fuer Python3 gibt es AFAIR nur PyQt5 Versionen. QtWidgets. To import the module use, for example, the following statement: from PyQt4 import QtMultimedia. Minhas ideia na parte da aquisição e processamento das imagens seria utilizar uma câmera 360º com GPS (acredito que a GoPro Fusion tem um bom custo x benefício) para captura das imagens e utilizar o plugin photo 2 point para criar os pontos das coordenadas da tomadas das fotos e utilizar hiperlink ou o próprio formulário para carregar a foto do ponto. PyQt5 - python-3. Compare this path with the sys. Как построить против qt 5. 2 (or PyQt5. I'd suggest running the python stuff from source and copy the artifacts that you do need (eg; CuraEngine). The bindings are implemented as a set of Python modules and contain over 1,000 classes. qtmultimedia python3-pyqt5. I try to run a python script using PyQt5 QtWebEngineWidgets but it throws errors: from PyQt5. The Qt installers include the option of downloading the add-ons. Environment * Python version: 3. QtMultimedia' Is the problem maybe that I'm using kubuntu 15. linux 版本source insight 1710. QtMultimedia QML module is not installed on Android I have "import QtMultimedia 5. # # Distributed under the terms of the GNU General Public License with exception # for distributing. Type 'no' to decline the terms of the license. Как построить против qt 5. Device Tree For discussing issues specific to Linux Device Tree implementation/use on the Raspberry Pi and Compute Module products. 2的Sqlite3模块未有编译,只好重新编译一遍Python-3. 0" specified in my QMLs but the qmlimportscanner doesn't seem to see them. This tells PyInstaller # which protocol of the wx module should be bundled. The os module provides the functionality to interact with the operating system. For some reason I cannot open a specific Django project in Pycharm on my Windows7 laptop. [SOLVED]What's the problem (Linux)? ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network. No module named 'rasterio' 2. ModuleNotFoundError: No module named '_sqlite3' …查找日志及查看BLFS的指南发现Python-3. Checking to see if the QtGui module should be built Checking to see if the QtHelp module should be built Checking to see if the QtMultimedia module should be built. py in a folder where the Analysis object looks for hooks. To import the module use, for example, the following statement: from PyQt4 import QtMultimedia. Qt' Related. No module named 'PyQt5. JavaCompiler编译的时候有时会返回NULL 1711. If you are looking for pyqt designer, you should also add: apt-get install libqt4-dev qt4-dev-tools python-qt4-dev pyqt4-dev-tools #16 ken brockman commented on 2012-02-28 : I have been trying unsuccessfully on and off for over three months to get eric5 installed on my Ubuntu 11. decorator fehlt. В проекте есть qtwebkit как зависимость, и это похоже вызывая проблемы. iOS7 打开相机代码 1714. 1+dfsg-3ubuntu4 amd64 Python 3 bindings for Qt5's Multimedia module ii python3-pyqt5. QtMultimedia QML module is not installed on Android I have "import QtMultimedia 5. Wie installiere ich qtwebkit auf Ubuntu 17. Package: python3-pyqt5. # ----- # Copyright (c) 2005-2017, PyInstaller Development Team. QtWebEngineWidgets import ( ImportError: No module named 'PyQt5. QtMultimedia' Bug #1751071 reported by dino99 on 2018-02-22. 2 Anyone please help me. com et être connecté pour pouvoir participer aux discussions. [SOLVED]What's the problem (Linux)? ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network. 12 documentation to find public API Qt types and test if the types are present in the PySide2 package. QtMultimedia' Is the problem maybe that I'm using kubuntu 15. 6-67a20677a936 --python3. Python programmers can easily use this os module for performing file and directory operations. *Нахожусь на начальной стадии практических умений на Python3. QtWebEngineWidgets: ImportError: No module named 'PyQt5. 我在PyQt方面遇到一些麻烦。 我通过 Homebrew 安装了PyQt4和 PyqQt5,我计划为我正在使用的特定项目使用 PyQt4. Copy link Quote reply Ssunhx commented Oct 22, 2018. Message ID: 1382009228-25988-1-git-send-email-sergey. Applications can take advantage of advances in codec and filter technology transparently. PyQt5 is not backwards compatible with PyQt4. 04无法联网 午睡20分钟,醒了之后服务器突然连不上网了,怀疑是网线有问题,插上无线网卡也无法联网。. anaconda自带库pyqt5中不含QtMultimedia问题, 错误类型:no module named PyQt5. {qtquick, qtopengl, qtmultimedia, qtsvg} etc. ModuleNotFoundError: No module named '_sqlite3' …查找日志及查看BLFS的指南发现Python-3. 6 в разработке, есть только девелоперские снапшоты. Get the SourceForge newsletter. Unfortunately, until this is done upstream, there is little we can do now. QtMultimedia To include the definitions of the module’s classes, use the following directive: import PySide. How to add QtMultimedia to PyQt5. Можно по свободке позаниматься украшательством и допиливанием функционала. QtWidgets. js jquery 1708. 3 + python 3. Get notifications on updates for this project. Building Qt 5 Modules. Hi When i try to rename variable it renames only first one but not all its usages, and pop the sing 'no occurrences found'. Raspbian and PyQt5 ImportError: No module named ‘PyQt5. QtMultimedia' Is the problem maybe that I'm using kubuntu 15. py in a folder where the Analysis object looks for hooks. 创建或者清理PyQt5编译环境,并根据常规过程构建它。 替代 如果这个修复不能解决问题,安装libgl1-mesa-glx包( GLX运行时) 和 libgl1-mesa-dri ( 绘图加速器),如果它们也是缺失的,并按照收费的Build指令进行。. 0] No module named 'PyQt5. Even if they are full of regex :P > > If there is no interface, I?d rather not even have a fix name, or people > will think updates are specified somehow. Many add-on modules are either feature-complete and exist for backwards compatibility, or are only applicable to certain platforms. JavaCompiler编译的时候有时会返回NULL 1711. The os module provides the functionality to interact with the operating system. anaconda自带库pyqt5中不含QtMultimedia问题, 错误类型:no module named PyQt5. PySide2 bindings for Qt 5. py output log (verbose). Qt 5 base will now be installed to /usr/local/Qt-5. Ich habe unter Eric 6 begonnen, mich in Python (3) einzuarbeiten. No module named PyQt5. No Module named QtMultimedia audio pyqt pyqt5 qtmultimedia Updated May 01, 2019 15:26 PM. поюзал вторую бетку, за 2-3 ни разу не упала) и это хорошо. Building Qt 5 Modules. 1+dfsg-3ubuntu4 amd64 Python 3 bindings for Qt5's Multimedia module ii python3-pyqt5. Checking to see if the QtGui module should be built Checking to see if the QtHelp module should be built Checking to see if the QtMultimedia module should be built. Applications can take advantage of advances in codec and filter technology transparently. qtmultimedia (5. ImportError: No module named 'PyQt5. Mybatis源码解读-Executor 1713. PyQt4 supports Qt v4 and will build against Qt v5. I don't really know what caused the crash you have now. This is a "known issue". PyQt5 - python-3. 2 (or PyQt5. libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11- python3-pyqt5 python3-pyqt5. Forum d'entraide sur PyQt Dernier message le 14/10/2019. Hallo Freunde. PyQt5 supports multimedia, including a video widget: QVideoWidget. QtWebEngineWidgets' 解决 方法. mk cfgtest_phonon. python3-rope does not exist in Fedora since the python3 port is not complete yet. QtWebEngineWidgets import ( ImportError: No module named 'PyQt5. Type 'yes' to accept the terms of the license. Highly unlikely, see the discussion in #2144. How to get this working?. 5以上,我目前使用的是Python2. 2、查看\Anaconda3\Lib\site-packages\PyQt5中只有QtMultimediaWidgets没有QtMultimedia. This tells PyInstaller # which protocol of the wx module should be bundled. QtWebEngineWidgets soon. How to add QtMultimedia to PyQt5. QtMultimedia. Get notifications on updates for this project. Also hab ich das auch installiert, aber jetzt fehlt PyQt5. PyQt5 is a module that can be used to create graphical user interfaces (GUI). The most frequently usage for you to use this m3u8 module is perhaps you want to get the playlist URLs, here is the fast way, for example 1. qtmultimedia (5. поюзал вторую бетку, за 2-3 ни разу не упала) и это хорошо. Unfortunately, until this is done upstream, there is little we can do now. PyQt5 wheels are specific to a particular version of Python. 2以添加Sqlite3模块了(模糊记得Zim Desktop Wiki也应该需要)…下次编译Liddy's Linux 8. So this is my very first time in this site. # # For example the 'wx' module needs variable 'wxpubsub'. Last night, I decided to merge the changes to the master with the modifications I've been making to my fork. *Нахожусь на начальной стадии практических умений на Python3. No module named PyQt5. QtMultimedia import QMediaContent, QMediaPlayer from PyQt5. Python programmers can easily use this os module for performing file and directory operations. [SOLVED]What's the problem (Linux)? ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network. QtWebEngineWidgets' I think there is a. | For properties the property is set to the given value which should be of an. Hi When i try to rename variable it renames only first one but not all its usages, and pop the sing 'no occurrences found'. Warning: By default, the volume is set to zero because it is not possible to determine how loud the sound will be when played. ImportError: No module named blur. raspberry_sch. # ----- # Copyright (c) 2005-2017, PyInstaller Development Team. 0 answers 1 views 0 votes How to draw QtGraphicsView on Top of QVideoWidget. I just tried again with the. Можно по свободке позаниматься украшательством и допиливанием функционала. Affects Status Importance Assigned to. qtwebkit is installed. python3-rope does not exist in Fedora since the python3 port is not complete yet. Type 'no' to decline the terms of the license. Checking to see if the QtGui module should be built Checking to see if the QtHelp module should be built Checking to see if the QtMultimedia module should be built. *Нахожусь на начальной стадии практических умений на Python3. apt-cache search pyqt5 Perhaps the command you need is sudo apt-get install python3-pyqt5 I suggest you always preferentially use apt-get rather than pip. Dabei hab ich PyQt5 und PyQt5. hook_variables = {} def __exec_python_cmd(cmd, env=None): """ Executes an externally spawned Python interpreter and returns anything that was emitted in the standard output as a single string. QtWebEngineWidgets soon. Type 'no' to decline the terms of the license. Unfortunately, until this is done upstream, there is little we can do now. Woran liegt das? Vielen Dank für eure Hilfe im Voraus. PySide2 bindings for Qt 5. 3 + python 3. 21 posts • Page 1 of 2 • 1. qtmultimedia 5. # # Distributed under the terms of the GNU General Public License with exception # for distributing. These modules may only be available on some development platform. py output log (verbose). 2 (or PyQt5. 5以上,我目前使用的是Python2. Maybe even. I can't leave a comment, not enough reputation, but thought I should mention this in case it helps anyone using VirtualEnv: In my case (Raspbian on a Raspberry Pi 3, Python 3 in a virtual environment) the answer provided by CharlieHorse is the only one which worked as I could not get.