Upgrade asdf's python

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae
Search for a command to run...

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae
No comments yet. Be the first to comment.
with T.A.C.T

Isolation is part of a database's ACID guarantees. It ensures that concurrent transactions don't affect each other. The goal is to maintain the state of the data as if transactions are run serially. H

You Should Tell Yourself

A URL shortener is a proxy service that provides a mapping between the short and full representation of a URL. The short URL has the advantage of being small. The service can also provide useful analy

Listening to the Mel Robbins's podcast on regrets was a 'ear'-opener. One can have reqrets of action or inaction. 4 types of reqrets foundation - should've done the work boldness - should've taken t

It's a fairly straight forward process to upgrade a python version in asdf.
asdf update
asdf install python <version>
asdf global python <version>
However I kept running into the follow when installing pipx
pip install pipx
ERROR: Could not find an activated virtualenv (required).
ensure pip uses the right python via
alias pip='python -mpip'
After a little digging, I figured out the self inflicted error.
It's always a good idea to avoid install python packages to your global i.e: not in a virtual environment. Do this by adding it to your pip config file via
pip config set global.require-virtualenv True
pipx does this for you by default, but it needs to be installed in your "global" (actually asdf's) python. The work around is to temporarily disable it to install pipx.
I'm documenting here for anyone else that run's into this and for my future self.
https://asdf-vm.com/ - multiple runtime version manager
https://github.com/pypa/pipx - manager for isolated python applications