-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Conflicts during conda installation with Python 3.8, cudatoolkit=10.2, Ubuntu 18.04 (minimum working examples provided) #1538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't understand what is wrong with your attempt #1. Here's something similar which works for me today
The resulting conda list is as follows, which may help you ask for more specific versions.
|
Thanks @bottler and I apologize for my delayed response in following up on this. I investigated more and found some interesting things about installing (pytorch 1.12.1 seems OK but 2.0.1 seems to be giving some errors): First Part (Reconcile Differences in Our Installation, PyTorch 1.12.1)I tried this again which is my first attempt in my original post:
Unfortunately it still did not work on the Ubuntu 18.04 machine I'm testing. The conda list right after I had killed the last command.
But when I delete the
Suddenly the last command will finish correctly and not complain about conflicts. Here's the paste bin which shows my sequence of commands: https://pastebin.com/raw/dYYgXNDR This starts from my removal of the old conda environment that failed and then I ran your commands. The only differences are:
Would any of these cause issues that you are aware of? Second Part (Try PyTorch 2.0.1)But will this also work for the newer version of PyTorch? The installation said that it supports PyTorch 2.0.1. I try the sequence of commands:
I am running into package conflicts. When you run the last installation, do you run into the same issue? The actual error I get (fortunately it's not too long):
Also tried other PyTorch versions and it is giving similar errors. PyTorch 2.0:
PyTorch 1.13:
Both sets of the above commands result in conflicts when I try and install the Thanks again for checking this. |
torchvision and torchaudio probably won't matter. If pytorch installs without conda-forge that's ok too: it doesn't for some sets of versions. Note newer instructions replace cudatoolkit with pytorch-cuda, adding For the second part, exactly the right build https://anaconda.org/pytorch3d/pytorch3d/0.7.4/download/linux-64/pytorch3d-0.7.4-py38_cu117_pyt201.tar.bz2 is available. Maybe you could download it directly and conda install the file? |
Thanks @bottler I realized that the code I needed in |
Uh oh!
There was an error while loading. Please reload this page.
The Problem
I am running into problems with installing PyTorch3D. I am looking at the instructions:
https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md
Due to my existing code restrictions, I have to use Python 3.8 but that should be supported. In addition, I am using
cudatoolkit=10.2
for my pytorch installations which is again a function of the machines that I am using. I am trying different pytorch versions, downgrading to 1.10 (as shown in my minimum working examples). Unfortunately when I installpytorch3d
I am running into the dreaded "Found conflicts" error. This has been reported before:torchvision
version but I have one that's reasonably up to date. This also shows an example from a maintainer of usingcudatoolkit=10.2
but with python 3.9.pytorch
version but I specify the version in my command.pytorch3d
that got updated later.conda list
whereas I have stuff in there as I show later.See below in my Minimum Working Examples for an example output of this error.
Minimum Working Examples
Here are a set of minimum working examples. They are modeled after the one in this post.
To clarify, I tried each of these MWEs one by one in sequence. They all resulted in the same error at the end. After I tried each attempt, I removed the conda env with
conda env remove -n seuss
and then did the next attempt. All are done on an Ubuntu 18.04 machine.Attempt 1
Attempt 2 (downgrade torch to 1.12):
Attempt 3 (downgrade torch to 1.11):
Attempt 4 (downgrade torch to 1.10):
Here is an example output from the 4th attempt with the error message: https://pastebin.com/raw/DK6deHam (it was too long to paste into GitHub).
Other Information
After the 4th attempt above, I tried doing
conda list
and checking to see if I can use torch:I do not notice anything wrong here.
Here is
conda info
:Thus, I am unsure what to do now other than to keep trying different combinations. Is there a compatibility matrix of versions of python, torch, cudatoolkit, and pytorch3d, ideally ones that work with Python 3.8?
For Reference, Python 3.7
Using Python 3.7, and an older pytorch3d version, this will NOT run into an installation error:
I am wondering if there is something related to recent versions of pytorch3d that might result in incompatibilities?
The text was updated successfully, but these errors were encountered: