You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/installation.rst
+35-2Lines changed: 35 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,21 @@ from scratch is probably using the Conda system. We recommended using Conda from
9
9
python environment, and want to install PyDM for use with that, you can do that
10
10
with pip.
11
11
12
+
PyDM runs using python bindings ontop of Qt, and works with either PyQt5 (to run on Qt5) or PySide6 (to run on Qt6). For now, PyQt5 is the recommended choice to run with,
13
+
whereas PySide6 provides future-proofing and the potential for new Qt6 specific features.
14
+
(Note: currently functionality is the same between PyQt and PySide6)
15
+
16
+
In general, running PyDm with a chosen python binding is as simple as follows:
17
+
loading a conda environment that has installed PyDM and PyQt5 or PySide6 (along with the other required packages),
18
+
and then setting the QT_API environment variable accordingly ("pyqt5" or "pyside6".)
19
+
Then when you run PyDM it will automatically use your selected binding.
20
+
(Note: It's not recommended to try installing both PyQt5 and PySide6 into the same conda environment, as this might cause issues with the underlying Qt libraries.)
21
+
22
+
Instructions for setting up conda environments for PyQt5 and for PySide6 are provided later on this page.
23
+
12
24
Please note, this guide is written with Unix in mind, so there are probably some differences when installing on Windows.
13
25
14
-
Installing PyDM and Prerequisites with Conda
26
+
Installing PyDM and Prerequisites with Conda (PyQt5)
15
27
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16
28
17
29
.. warning::
@@ -48,7 +60,24 @@ Now, you can use 'open' to open Designer.app::
48
60
49
61
$ export QT_MAC_WANTS_LAYER=1
50
62
51
-
Installing Manually, Without Anaconda
63
+
Installing PyDM and Prerequisites with Conda (PySide6)
64
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
+
66
+
After installing Miniforge (see https://conda-forge.org/download/), create a new
67
+
environment for PyDM::
68
+
69
+
.. note::
70
+
Pyside6 is installed with into the conda environment with pip b/c the conda install doesn't provide the pyside6-designer bin currently.
0 commit comments