opencompass
opencompass copied to clipboard
[Bug] AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] The bug has not been fixed in the latest version.
Type
I'm evaluating with the officially supported tasks/models/datasets.
Environment
ubuntu 22.04
Reproduces the problem - code/configuration sample
conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
Reproduces the problem - command or script
1. conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
2. git clone https://github.com/open-compass/opencompass.git
3. cd opencompass
4. pip install -e .
Reproduces the problem - error message
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
Other information
Please upgrade python=3.11 when install opencompass, use this command with conda:
conda create --name opencompass python=3.11 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
Please provide the detailed config you use