Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example to use statistic module:

...

With requirements.txt

  • The following file will be used as an entry point script:
Code Block
languagepy
themeRDark
titleFile __main__.py
linenumberstrue
# Module import
import statistics


# Use of module
def compute_mean(data):
    print(statistics.mean(data))


# Script
if __name__ == '__main__':
    compute_mean([1, 5, 9, 6, 7])

...

Code Block
languagebash
themeRDark
titlePython execution command
python {file}

With pip install

It is also possible to install modules manually using pip.

...