facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

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

Open maya136 opened 10 months ago

maya136 commented 10 months ago

🐛 Bugs / Unexpected behaviors

I am trying to install pytorch3d but keep failing.

Running: !pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.5 works ok.

But if I run:

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

And then !pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.5

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/pytorch3d.git@v0.7.5

vs. Working:

!pip install git+https://github.com/facebookresearch/pytorch3d.git@v0.7.5

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

bottler commented 9 months ago

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.

Xin200203 commented 8 months ago

I also meet the same problem with google colab.

image

No matter using git or installing from a local clone. Anybody can help?

bottler commented 8 months ago

@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?