mignonjia / TS_watermark

8 stars 0 forks source link

There is something wrong when I configure the python environment #4

Open Lobskodax opened 23 hours ago

Lobskodax commented 23 hours ago

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.

Lobskodax commented 17 hours 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

mignonjia commented 15 hours ago

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