mirror of
https://github.com/jbranchaud/til
synced 2026-03-04 06:58:45 +00:00
Add Install With PIP For Specific Interpreter as a Python TIL
This commit is contained in:
@@ -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)
|
||||
|
||||
17
python/install-with-pip-for-specific-interpreter.md
Normal file
17
python/install-with-pip-for-specific-interpreter.md
Normal file
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user