Python on Windows and aliasing

I’m really lucky to have a decent PC that I can spin up multiple VM’s on when fiddling with database stacks, and a MacBook Pro that I can code from bed (being far too lazy helps).

I use VSCode FOR my IDE and have a multi-root workspaces configure for multiple[le GIT repos under a single workspace which I find easier.

This all leads to a slightly different dev environment that I switch between, so I also use some ansible scripts on my GIT repos to make sure I can run things on either machine. I have WSL set up with Ubuntu 20.x running which acts as my ansible host on windows, and ansible runs on OSX anyway.

This rambling finally leads onto Python. I’ve just started really coding in Python to build my REST API tool for Cassandra, however I’ve been tinkering from a infrastructure standpoint via Ansible for a while now. The number one thing I’ve learnt along the way is it’s a little retarded when it comes to figuring out what version you want to use between pip, python, and what ever modules you use in your app, especially on OSX.

In anycase, this is just a small tidbit on the way i explicity mention python3 on the commnd line on my OSX machine, but it’s ‘python’ only on my windows box. The easiest solution to this was t oad dthe following in PowerShell:

Leave a Reply

Your email address will not be published. Required fields are marked *