...
For example to use statistic module:
...
With requirements.txt
- The following file will be used as an entry point script:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
# 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 | ||||||
---|---|---|---|---|---|---|
| ||||||
python {file} |
With pip install
It is also possible to install modules manually using pip.
...