How are you launching python to use or not to use pyqt6? Do you actually have separate Python installations?
On Tuesday, April 13, 2021 at 12:11:53 PM UTC-4 [email protected] wrote: > I also use a batch file to launch Python 3.8. In my case, I also have > Python 2.7 on the machine, and paths for 2.7 are in the path. So my batch > file also mangles those 2.7 paths so they don't interfere with the 3.8 > ones. (I still need 2.7 for work on one particular project). > > I'm considering creating a batch file to set the PYTHONPATH to use my git > clone for development, and another to set up for pyqt6. But I'm not > convinced that these things are worth the trouble to keep the extra batch > files straight in my memory. > > Like you, I always make sure I'm using the right version of pip. But I > don't do it by specifying the version (e.g., pip3). Instead, I launch it > using > > pyxx -m pip > > This automatically makes sure that the correct version of pip gets used, > whichever version of Python I'm using. > > On Tuesday, April 13, 2021 at 10:57:59 AM UTC-4 Edward K. Ream wrote: > >> Here is how I switch between different versions of python. It could be >> extended to handle different versions of qt, but I haven't done that. >> >> The advantages of my scheme are: >> >> - It uses no extra software, just python and pip. >> - It does not change the state of the system in any way. >> - It makes no changes to system settings. >> - It does not use sitecustomize.py. >> - It allows me to install all my Leo-related software in my home >> directory. >> >> For each version V (say 3.9), of python, I do the following: >> >> - Install python 3.9 in my home directory, choosing "no" when asked if I >> want to change the system's path var. >> - Create aliases (.bat files) for leo39 and pip39. >> - Create aliases (.bat files) that open various .leo files using python >> 3.9. These aliases all call leo39. >> >> Python 3.9 is the default, I also create aliases that don't have a >> version number. But not plain "pip": I want to have to specify the version >> number explicitly when I install packages. >> >> That's *all.* >> >> *Summary* >> >> I use aliases (.bat files) to specify the desired environment. aliases >> without a version suffix denote the default environment. >> >> This scheme works well for me. You might like it as well. >> >> Edward >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/602adf88-4eea-4895-838b-5d6fe4e47fc6n%40googlegroups.com.
