ufoym / imbalanced-dataset-sampler

A (PyTorch) imbalanced dataset sampler for oversampling low frequent classes and undersampling high frequent ones.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install error

wly-ai-bj opened this issue · comments

Follows your method to install the package:
git clone https://github.com/ufoym/imbalanced-dataset-sampler.git
cd imbalanced-dataset-sampler
python setup.py install
pip install .

But when I run "pip install .", I met the error as follows:
FileNotFoundError: [Errno 2] No such file or directory: '/home/miniconda3/envs/pytorch/lib/python3.7/site-packages/torchsampler-0.1-py3.7.egg'

How can I resolve it?

Excuse me, have you solved that problem, i met the same issue.

you can try to use: sudo pip install . that work for me.

after #24 you can simply

pip install git+https://github.com/ufoym/imbalanced-dataset-sampler.git