Message when conda is not activated
This commit is contained in:
parent
6fd53b9229
commit
cfb8a15064
@ -41,6 +41,7 @@ def run(program : ArgumentParser) -> None:
|
||||
python_id = 'cp' + str(sys.version_info.major) + str(sys.version_info.minor)
|
||||
|
||||
if not args.skip_conda and 'CONDA_PREFIX' not in os.environ:
|
||||
sys.stdout.write(wording.get('conda_not_activated') + os.linesep)
|
||||
sys.exit(1)
|
||||
if args.onnxruntime:
|
||||
answers =\
|
||||
|
@ -2,6 +2,7 @@ from typing import Any, Dict, Optional
|
||||
|
||||
WORDING : Dict[str, Any] =\
|
||||
{
|
||||
'conda_not_activated': 'Conda is not activated',
|
||||
'python_not_supported': 'Python version is not supported, upgrade to {version} or higher',
|
||||
'ffmpeg_not_installed': 'FFMpeg is not installed',
|
||||
'creating_temp': 'Creating temporary resources',
|
||||
|
Loading…
Reference in New Issue
Block a user