Open Lobskodax opened 1 month ago
I think the problem may occur more on simcse because I have previously configured the environment when running KGW's watermark algorithm and it runs normally. But when I tried to pip install simcse, I got an error. Later, I downloaded the .whl file from the internet for installation, but still had problems. That's why I was forced to change the Python version to 3.7
Thanks for being interested in our work and pointing out the problem! Here are the package versions:
Python 3.10.13
accelerate==0.26.1 datasets==2.16.1 huggingface-hub==0.25.1 matplotlib==3.8.0 nltk==3.8.1 numpy==1.26.1 scipy==1.11.3 simcse==0.4 spacy==3.7.2 tokenizers==0.20.0 torch==2.4.0 torchaudio==2.1.2 torchvision==0.19.0 transformers==4.45.1 wandb==0.15.12
When I was installing simcse on linux, I encountered the error “No module named'numpy.distutilities_ msvccompiler' in numpy.distutils;” The solution I found online is to use Python 3.7. And then, the environment is indeed installed correctly. But when running the demo program, it prompts an error “ImportError: cannot import name 'cache' from 'functools'“ because cache does not support Python versions below 3.9. If possible, please provide more detailed environmental configuration information, thank you.