pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

Can't install pytorch3d on Google Colab: installation raises several errors after running condacolab before

Open maya136 opened this issue 1 year ago • 3 comments

🐛 Bugs / Unexpected behaviors

I am trying to install pytorch3d but keep failing.

Running: !pip install git+https://github.com/facebookresearch/[email protected] works ok.

But if I run:

! pip install -q condacolab
import condacolab
condacolab.install()

And then !pip install git+https://github.com/facebookresearch/[email protected]

It does not work. Error: Screenshot 2024-01-21 at 14 14 14

conda 23.1.0 if needed.

Instructions To Reproduce the Issue:

Not working:

! pip install -q condacolab
import condacolab
condacolab.install()
!pip install git+https://github.com/facebookresearch/[email protected]

vs. Working:

!pip install git+https://github.com/facebookresearch/[email protected]

Can you help me? I am trying to figure out the cause here but I don't know why it makes the error occur.

maya136 avatar Jan 21 '24 10:01 maya136

I have no experience with condacolab, and our instructions for installing pytorch3d on colab are assuming you aren't using it. I think it gives you something like a normal conda environment, so you probably want to follow the usual procedure for installing pytorch3d via conda. In particular, you need to install pytorch and fvcore and iopath explicitly as conda packages first.

bottler avatar Jan 23 '24 15:01 bottler

I also meet the same problem with google colab. image No matter using git or installing from a local clone. Anybody can help?

Xin200203 avatar Feb 29 '24 11:02 Xin200203

@Xin200203 The method of installing shown in the tutorials should work fine. Are you trying with non-vanilla colab e.g. with condacolab like the OP here?

bottler avatar Feb 29 '24 13:02 bottler