I was suggesting a possible resource while making it clear I am not Windows savvy. My avoidance of Windows has nothing to do with Python, so there is no need to discuss it here.
If I don’t care which Python I’m using, I’ll type python3. If I want3.9, python3.9. python3 -V tells me the default on that system. (It varies across our servers). If a Python package isn’t available in the mainline Ubuntu repository (python3-whatever), I’m creating a virtual environment. It just saves trouble in the long run. I have this in ~/bin to create an environment. I’m slowly moving projects to the pyproject.toml because pip is complaining about the setup.py installs. #!/bin/bash VERS=3.8 #default version VENV=venv #default environment name if [ $# -gt 0 ]; then VERS=$1 fi if [ $# -gt 1 ]; then VENV=$2 fi PYTHON=python$VERS echo $PYTHON $PYTHON -m venv $VENV ./$VENV/bin/pip install -U pip ipython if [ -e requirements.txt ]; then ./$VENV/bin/pip install -r requirements.txt fi if [ -e setup.py ]; then ./$VENV/bin/python setup.py install fi if [ -e pyproject.toml ]; then ./$VENV/bin/pip install -e . fi From: Python-list <python-list-bounces+gweatherby=uchc....@python.org> on behalf of Thomas Passin <li...@tompassin.net> Date: Monday, December 19, 2022 at 11:05 AM To: python-list@python.org <python-list@python.org> Subject: Re: Installation hell *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** On 12/19/2022 9:59 AM, Weatherby,Gerard wrote: > Personally, I don’t use Windows and avoid it like the plague. Python is easy > to install on Linux and Mac. That's not been my experience. Windows installers for Python have worked well for me over many generations of Python releases. It's Linux where I've found difficulties. For example, if your distro's Python install didn't include tkinter (or even pip), how do you get it? It's different for different Linux distros. I generally have to use internet searches to find out. For another example, when you use pip to install a package, it sometimes suggests that you install a newer version of pip itself. Should you do that? On Linux, probably not, because the distro will have modified pip so it puts things in distro-specific places. Yet there is no newer version of pip available through the distro's package manager. Will anything bad happen if you don't update pip? Who knows? I have a Linux VM that has several versions of Python3 on it. Python3.8 came installed with the distro, but for some programs I need Python 3.9+. If I forget which versions I have, how can I find out? People say to use which, but that doesn't work - it only reports "python3". This does work, but it's not all that easy to remember (the grep "site" part is just to filter out uninformative result lines): ~$ find 2>/dev/null ~ -name python -type d |grep "site" /home/tom/.local/lib/python3.9/site-packages/PyQt5/Qt5/qsci/api/python /home/tom/.local/lib/python3.8/site-packages/pandas/_libs/src/ujson/python /home/tom/.local/lib/python3.10/site-packages/PyQt5/Qt5/qsci/api/python Not that this task is much easier to remember on Windows, but it's not harder. One way: the "py" launcher will tell you: py --list -V:3.10 * Python 3.10 (64-bit) -V:3.9 Python 3.9 (64-bit) -V:3.7 Python 3.7 (64-bit) -V:2.7 This is not Linux-bashing, but there's no need for Windows-bashing either. > I’d start here: > https://learn.microsoft.com/en-us/visualstudio/python/overview-of-python-tools-for-visual-studio?view=vs-2022 > > From: Python-list <python-list-bounces+gweatherby=uchc....@python.org> on > behalf of Jim Lewis <jimdanielle...@gmail.com> > Date: Sunday, December 18, 2022 at 12:56 PM > To: Python-list@python.org <Python-list@python.org> > Subject: Fwd: Installation hell > *** Attention: This is an external email. Use caution responding, opening > attachments or clicking on links. *** > > I'm an occasional user of Python and have a degree in computer science. > Almost every freaking time I use Python, I go through PSH (Python Setup > Hell). Sometimes a wrong version is installed. Sometimes it's a path issue. > Or exe naming confusion: python, python3, phthon311, etc. Or library > compatibility issues - took an hour to find out that pygame does not work > with the current version of python. Then the kludgy PIP app and using a DOS > box under Windows with command prompts which is ridiculous. God only knows > how many novice users of the language (or even intermediate users) were > lost in the setup process. Why not clean the infrastructure up and make a > modern environment or IDE or something better than it is now. Or at least > good error messages that explain exactly what to do. Even getting this > email to the list took numerous steps. > > -- A frustrated user > -- > https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!gdOs-oC1JZcmvMXy1G4irRpzHCUmF565UXVdCjzSWNGZKpmZ04I_llDX4WUeob3asBCjLe6TIthAAhmwFgbph9u1m9A$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!gdOs-oC1JZcmvMXy1G4irRpzHCUmF565UXVdCjzSWNGZKpmZ04I_llDX4WUeob3asBCjLe6TIthAAhmwFgbph9u1m9A$><https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!gdOs-oC1JZcmvMXy1G4irRpzHCUmF565UXVdCjzSWNGZKpmZ04I_llDX4WUeob3asBCjLe6TIthAAhmwFgbph9u1m9A$%3chttps:/urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!gdOs-oC1JZcmvMXy1G4irRpzHCUmF565UXVdCjzSWNGZKpmZ04I_llDX4WUeob3asBCjLe6TIthAAhmwFgbph9u1m9A$%3e> -- https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!jE6AjIj87dxZUxuKQ6JNejqfM89fMIn9dCawvy3MAsC1Y9K1LVekL9Vxn1dNntu2VNPzdvehOKAEpOjyhEQ$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!jE6AjIj87dxZUxuKQ6JNejqfM89fMIn9dCawvy3MAsC1Y9K1LVekL9Vxn1dNntu2VNPzdvehOKAEpOjyhEQ$> -- https://mail.python.org/mailman/listinfo/python-list