Issues installing pytorch3d

Problem description

I tried installing pytorch3d through the package installer; the install fails.

Expected behavior

The package should install.

Actual behavior

The package install fails with error:

--> poetry add 'pytorch3d ==0.7.4'

Updating dependencies
Resolving dependencies...

Package operations: 1 install, 0 updates, 0 removals

  • Installing pytorch3d (0.7.4)

  RuntimeError

  Unable to find installation candidates for pytorch3d (0.7.4)

  at /nix/store/fcbymdrl3n3ksr6z2zbsmsb2vnixyz39-poetry-in-venv/env/lib/python3.10/site-packages/poetry/installation/chooser.py:76 in choose_for
       72│ 
       73│             links.append(link)
       74│ 
       75│         if not links:
    →  76│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       77│ 
       78│         # Get the best link
       79│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       80│ 

exit status 1

Steps to reproduce

  • Create new repl
  • Try installing pytorch3d from package manager.

Browser

MacOS Replit app

OS

MacOS

Device if mobile

N/A

Plan

Core membership

Checking pytorch3d’s PyPI page…

All of the built distributions are only for MacOS.

Try following the instructions on pytorch3d/INSTALL.md at main · facebookresearch/pytorch3d · GitHub

NOTE:
System dependencies may need to be installed. Do this with the System dependencies tool (if no install option, then there is another method).
For python packages, if you install via the Packages tool, or with auto-guessing, then the System dependencies for that package will be installed automatically.

2 Likes

Is it possible to install packages with pip and not mess up the repl’s poetry?

You should be fine to use pip and poetry, the only reason it wasn’t recommended for a long time was because of old conflicts that no longer occur.

2 Likes

One caveat is that dependencies by way of pip install won’t be tracked, so…

  1. if you delete your .pythonlibs
  2. if you intend to use “Deployments” to host your code
  3. you expect UPM to guess which packages your project depends on

… you will run into trouble.

2 Likes