diff --git a/README.md b/README.md index 79ab5d5..df550e7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ working across different projects via [VisualMode](https://www.visualmode.dev/). For a steady stream of TILs, [sign up for my newsletter](https://visualmode.kit.com/newsletter). -_1738 TILs and counting..._ +_1739 TILs and counting..._ See some of the other learning resources I work on: @@ -1034,6 +1034,7 @@ If you've learned something here, support my efforts writing daily TILs by - [Break Debugger On First Line Of Program](python/break-debugger-on-first-line-of-program.md) - [Create A Dummy DataFrame In Pandas](python/create-a-dummy-dataframe-in-pandas.md) - [Dunder Methods](python/dunder-methods.md) +- [Install With PIP For Specific Interpreter](python/install-with-pip-for-specific-interpreter.md) - [Iterate First N Items From Enumerable](python/iterate-first-n-items-from-enumerable.md) - [Override The Boolean Context Of A Class](python/override-the-boolean-context-of-a-class.md) - [Store And Access Immutable Data In A Tuple](python/store-and-access-immutable-data-in-a-tuple.md) diff --git a/python/install-with-pip-for-specific-interpreter.md b/python/install-with-pip-for-specific-interpreter.md new file mode 100644 index 0000000..5e74b4e --- /dev/null +++ b/python/install-with-pip-for-specific-interpreter.md @@ -0,0 +1,17 @@ +# Install With PIP For Specific Interpreter + +The `pip` module can be invoked for any of its commands, such as install, using +a specific Python interpreter like so: + +```bash +$ python3 -m pip install black +``` + +This avoid ambiguity between the version of Python I am using and version of the +package manager I'm using. + +Similarly if I need to upgrade `pip`, I can do the following: + +```bash +$ python3 -m pip install --upgrade pip +```