Difference between revisions of "Template:Pip"

From BITPlan Wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#vardefine:package|{{{1|pyLodStorage}}}}}
 
<includeonly>{{#vardefine:package|{{{1|pyLodStorage}}}}}
=== upgrade ===
 
 
= Installation =
 
= Installation =
 
{{#tag:source|
 
{{#tag:source|
Line 14: Line 13:
 
# alternatively if your pip is not a python3 pip
 
# alternatively if your pip is not a python3 pip
 
pip3 install {{#var:package}}  
 
pip3 install {{#var:package}}  
|params={{attr|lang|"bash"}}
+
# local install from source directory of {{#var:package}}
 +
pip install .
 +
|lang=bash
 
}}
 
}}
 +
=== upgrade ===
 
{{#tag:source|
 
{{#tag:source|
 
pip install {{#var:package}}  -U
 
pip install {{#var:package}}  -U
 
# alternatively if your pip is not a python3 pip
 
# alternatively if your pip is not a python3 pip
 
pip3 install {{#var:package}} -U
 
pip3 install {{#var:package}} -U
|params={{attr|lang|"bash"}}
+
|lang=bash
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 14:04, 2 March 2024

This is a template to describe the installation procedure via pip for a python package

Usage

Example

{{pip|pyLodStorage}}


Installation

pip install pyLodStorage
# alternatively if your pip is not a python3 pip
pip3 install pyLodStorage 
# local install from source directory of pyLodStorage 
pip install .

upgrade

pip install pyLodStorage  -U
# alternatively if your pip is not a python3 pip
pip3 install pyLodStorage -U