shailja-thakur / CodeGen-Fine-Tuning

Apache License 2.0
31 stars 5 forks source link

This error has occurred. "ModuleNotFoundError: No module named 'pytest'" #5

Open jilianwang-meta opened 1 year ago

jilianwang-meta commented 1 year ago

Traceback (most recent call last): File "/wjl/transformers/examples/pytorch/language-modeling/run_clm.py", line 51, in from transformers.testing_utils import CaptureLogger File "/wjl/tutorial-env/lib/python3.10/site-packages/transformers/testing_utils.py", line 39, in from pytest.doctest import ( ModuleNotFoundError: No module named 'pytest' Traceback (most recent call last): File "/wjl/transformers/examples/pytorch/language-modeling/run_clm.py", line 51, in from transformers.testing_utils import CaptureLogger File "/wjl/tutorial-env/lib/python3.10/site-packages/transformers/testing_utils.py", line 39, in from pytest.doctest import ( ModuleNotFoundError: No module named 'pytest'

jilianwang-meta commented 1 year ago

Have you ever encountered such a mistake? How did you solve it?

foundten commented 1 year ago

try, pip install pytest.