![]() They copy/paste blocks of code that they find online or that I write. HOWEVER, students in other majors take classes or are simply given ancillary assignments in Python to provide exposure and understanding (and recruiting), not to master it. I can and will hold these students accountable as it is a learning outcome. Pedantry aside, yes my CS majors must of course learn the intricacies, though you'd be surprised at how little motivation many show to learn even the basics of terminal operations. I guess asking for a default /usr/bin/python and /usr/bin/pip links to be added for Mac/*nix is probably out of scope for the issue, huh? ) Short of this, at least the _3 and _3.x ones. If we can just get python, python3, python3.X, pip, pip3, and pip3.x all working by default across all major platforms, that would be fantastic. And while some inconsistency is unavoidable, these seem unnecessary and do cause confusion for students.and distress for teachers. And I think the /usr/bin/python symbolic link is apparently supposed to be managed using update-alternatives on Linux, which I guess is similar, but is not installed by default nor is it available on Mac.Īnyway, point is there is inconsistency across platforms. And then there's the py launcher for Windows, which is cool but doesn't exist on Mac/*nix and is unfortunately referenced in a number of tutorials. ![]() Likewise, pip works by default on Windows but not on Mac/*nix, which need pip3 but many package installation guides give command line examples using pip and not pip3. Windows folks had issues running python3 from MariaDB docs and Mac users had issues with python in the MySQL docs. I sent students to the MariaDB and MySQL connector pages. python does not work by default on MacOS or Linux (Debian/Ubuntu anyway), but python3 and python3.x does. python works by default on Windows but python3 or python3.x does not. The REAL problem is that there is inconsistency between platforms and documentation. But even if it uses python, my Mac users will have issues. How about I sidestep this and just modify my original assertion and say that "much of the documentation I send my students to" uses python3. Hmm, I checked about 10 of the top Google results for python tutorial, and that's not at all what I saw. IMO, perhaps just following pip's lead and copying the executable stubs might be the lowest friction solution. Yes, symbolic links exist on Windows, but only for NTFS, not FAT32. gh-99185: Copy python executable (python.exe) to python3.exe #100184.Though I'm unsure that saving 100MB would be worth the potential confusion. This appears to be how PIP is handled, with pip.exe, pip3.exe and pip3.X.exe all being copies of the same executable located in a Scripts subdirectory.Īlternatively, adding a python3.cmd script that calls python.exe and forwards all args would serve the same function. One option is simply to add a copy of python.exe named python3.exe in the base install directory. This seems like it should be an issue long since reported, but I cannot find it by searching. And it seems very easy to fix in the default install. And this comes up numerous times each semester despite posting FAQ's and warnings related to this issue. This is obviously only an issue for novice users. So the unsuspecting user is greeted with the option to install Python 3 from the Windows Store, which could break an existing installation and certainly will not do what they intended. Worse, there is a python3.exe in a default AppData\Local\Microsoft\WindowsApps directory which is a stub to open the Windows Store to download Python 3. will fail because all are written for *nix platforms that standardize on python3 as the name of the executable. Thus, a user following almost any online tutorial, copy/pasting installation scripts, etc. However, there is no python3.exe, python3.cmd or similar. On Windows, a Python 3 install directory contains python.exe.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |