Skip to content

Issues with CPU-only torch and deprecated setup.py bdist_wheel #300

@akashbeh

Description

@akashbeh

I had two issues when using CPU-only torch. Fixed both by using GPU torch.

Running Linux PureOS. Installed CPU-only torch with pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu as specified on https://pytorch.org/get-started/locally/ . Then

  1. Installation failed due to deprecated bdist_wheel (See 1-install.log. Packages are cached because I had just run with --dry-run.)

There were several errors preventing compiling. I also got warnings such as DEPRECATION: Building 'unidic' using the legacy setup.py bdist_wheel mechanism which led me to pypa/pip#6334. Rerunning with --use-pep517 fixed it. (See 2-pep517.log)

The github link says that project authors should add a pyproject.toml file.

  1. Running failed (see 3-run.log)

OSError: libtorch_cuda.so: cannot open shared object file: No such file or directory

I fixed this by reinstalling torch and torchvision. No reinstall of torchaudio or melotts was necessary. (See 4-reinstall.log)

1-install.log
2-pep517.log
3-run.log
4-reinstall.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions