Closed Shi-Qi-Li closed 1 year ago
The python version you are printing is not the same one specified in the conda environment. To check if the right version is used you can remove the pip dependencies ( so your install won't fail), having environment_submission.yml
like:
name: nuplan
channels:
- conda-forge
dependencies:
- python=3.9
- pip=21.2.4
Then run your python --version
command after the SHELL line
SHELL ["conda", "run", "-n", "nuplan", "/bin/bash", "-c"]
in the Dockerfile.submisison.
Thanks for your instant reply.
I removed the pip dependencies and got output 3.9.6
after the SHELL line. I think the python version is right, are there any other factors that could cause the torch installation fail?
@Shi-Qi-Li If you followed the tutorial, it is likely your docker environment is not cuda-enabled.
If that is the case, follow https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit to install nvidia-container-toolkit
. That should solve your problem.
@Shi-Qi-Li If you followed the tutorial, it is likely your docker environment is not cuda-enabled.
If that is the case, follow https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit to install
nvidia-container-toolkit
. That should solve your problem.
Thanks for your reply!
I installed the nvidia-container-toolkit
but the problem persists. And I solved the problem by downloading and installing from the .whl
file.
Thanks for your reply! I installed the
nvidia-container-toolkit
but the problem persists. And I solved the problem by downloading and installing from the.whl
file.
I am wondering how much time did you spend on 'pip install'? I have spent hours for it and finally get a 'pip fail' https://github.com/motional/nuplan-devkit/issues/286#issue-1695435219
Thanks for your reply! I installed the
nvidia-container-toolkit
but the problem persists. And I solved the problem by downloading and installing from the.whl
file.I am wondering how much time did you spend on 'pip install'? I have spent hours for it and finally get a 'pip fail' #286 (comment)
Hi @bulbcult , it takes me about 1-2 hours.
Hi developers, I met an error while following the Submission Tutorial to create the docker. I don't know how to solve it.
I print the python version in Dockerfile.submission(upper log step 10), and it's
3.10.9
. I'm not sure if it's correct.