Difference between revisions of "Template:Pip"

From BITPlan Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> Category:Template </noinclude> <includeonly> === upgrade === <source lang='bash'> pip install ConferenceCorpus -U # alternatively if your pip is not a python3...")
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
This is a template to describe the installation procedure via pip for a python package
 +
= Usage =
 +
== Example ==
 +
<pre>{{pip|pyLodStorage}}</pre>
 +
{{pip|pyLodStorage}}
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly>{{#vardefine:package|{{{1|pyLodStorage}}}}}
 +
= Installation =
 +
{{#tag:source|
 +
pip install {{#var:package}}
 +
# alternatively if your pip is not a python3 pip
 +
pip3 install {{#var:package}}
 +
# local install from source directory of {{#var:package}}
 +
pip install .
 +
|lang=bash
 +
}}
 
=== upgrade ===
 
=== upgrade ===
<source lang='bash'>
+
{{#tag:source|
pip install ConferenceCorpus -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 ConferenceCorpus -U
+
pip3 install {{#var:package}} -U
</source>
+
|lang=bash
 +
}}
 
</includeonly>
 
</includeonly>

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