Skip to content

Instantly share code, notes, and snippets.

@zepadovani
Created November 8, 2023 19:01
Show Gist options
  • Save zepadovani/8f6fab352d2e868ce9c2a71e936d971b to your computer and use it in GitHub Desktop.
Save zepadovani/8f6fab352d2e868ce9c2a71e936d971b to your computer and use it in GitHub Desktop.
Configure and run pywebview in a miniconda environment

1. create a miniconda environment

conda create --name pywebview                                                                                                    ✔  took 15s  pywebview Py 

2. enter the environment

conda activate pywebview                                                                                                    ✔  took 15s  pywebview Py 

3. install PyQt and related packages using conda (pip will not work)

conda install PyQt Qt pyqtwebengine pyqtwebkit qtwebkit 

4. install pywebview using pip

pip install 'pywebview[qt]' 

5. run test code:

import webview

webview.create_window('Hello world', 'https://pywebview.flowrl.com/')
webview.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment