Another post for me that is simple and hopefully serves as an example for people trying to get blogging as #SQLNewBloggers.
The other day I picked up a laptop, opened a command prompt and typed “python” to check something. I got this:
I did have Python 3.8 installed, so upgrading to 3.9 wasn’t out of the question. However, why did this come up?
I searched around and found out that Windows sets up application aliases for some versions. I can only assume since I had python on here that some update last fall did this and I hadn’t used this laptop for python because I’m stuck at home.
I saw this on SO as an issue, and followed the instructions. I used Win+I to open the control panel. Here I typed “apps and” to get to Apps and Features.
In here, I see there are “App execution aliases” as a link.
In here, I see that both Python.exe and Python3.exe are set as aliases.
I turned these last two off and then when I type “python,” I get what I want.
I wrote this as many of us run into silly issues, and while I found that SO article quickly, you might not. Your search terms might be different, or the search engine might give you different results. This might help you get setup quickly with Python, which is becoming more useful for data professionals.
This took my about 5 minutes to type up and grab a few screenshots.