mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 07:46:53 +08:00
Add collect_info script
This commit is contained in:
4
.github/ISSUE_TEMPLATE/bug-report.md
vendored
4
.github/ISSUE_TEMPLATE/bug-report.md
vendored
@@ -28,7 +28,9 @@ Steps to reproduce the behavior:
|
|||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
|
|
||||||
- Qlib version (use the command: `print(qlib.__version__)`):
|
**Note**: One could run `python scripts/collect_info.py` under the `qlib` directory to get the following information.
|
||||||
|
|
||||||
|
- Qlib version:
|
||||||
- Python version:
|
- Python version:
|
||||||
- OS (`Windows`, `Linux`, `MacOS`):
|
- OS (`Windows`, `Linux`, `MacOS`):
|
||||||
- Commit number (optional, please provide it if you are using the dev version):
|
- Commit number (optional, please provide it if you are using the dev version):
|
||||||
|
|||||||
24
scripts/collect_info.py
Normal file
24
scripts/collect_info.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import sys, platform
|
||||||
|
import qlib
|
||||||
|
|
||||||
|
def linux_distribution():
|
||||||
|
try:
|
||||||
|
return platform.linux_distribution()
|
||||||
|
except:
|
||||||
|
return "N/A"
|
||||||
|
|
||||||
|
print('Qlib version: {} \n'.format(qlib.__version__))
|
||||||
|
print("""Python version: {} \n
|
||||||
|
linux_distribution: {}
|
||||||
|
system: {}
|
||||||
|
machine: {}
|
||||||
|
platform: {}
|
||||||
|
version: {}
|
||||||
|
""".format(
|
||||||
|
sys.version.split('\n'),
|
||||||
|
linux_distribution(),
|
||||||
|
platform.system(),
|
||||||
|
platform.machine(),
|
||||||
|
platform.platform(),
|
||||||
|
platform.version(),
|
||||||
|
))
|
||||||
Reference in New Issue
Block a user