New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/cm/bin/python3: No module named pip #1179
Comments
You are using python from the virtual environment, right? Sometimes it gets broken and doesn't include pip. |
Thank you for your consideration. |
Thank you for your feedback @KingICCrab . I will keep this ticket open because, though this case that pip is not installed is rare, it still happens and maybe we can add these 2 commands to CM scripts to install pip if it's not detected ... |
When I run the command
cm run script "app mlperf reference inference _bert-99 _offline _onnxruntime _cuda _fp32"
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.10/importlib/metadata/init.py", line 996, in version
return distribution(distribution_name).version
File "/usr/lib/python3.10/importlib/metadata/init.py", line 969, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/init.py", line 548, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for pip
python3 -m pip install -r /home/zhaohc/CM/repos/mlcommons@ck/cm-mlops/script/get-sys-utils-cm/requirements.txt
/home/zhaohc/cm/bin/python3: No module named pip
CM error: Portable CM script failed (name = get-sys-utils-cm, return code = 256)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note that it may be a portability issue of a third-party tool or a native script
wrapped and unified by this automation recipe (CM script). In such case,
please report this issue with a full log at "https://github.com/mlcommons/ck".
The CM concept is to collaboratively fix such issues inside portable CM scripts
to make existing tools and native scripts more portable, interoperable
and deterministic. Thank you!
The text was updated successfully, but these errors were encountered: