1

I'm getting this below error when importing Pytorch.

"cannot import name 'invoke_remote_python_udf' from 'torch.distributed'"

1 Answer 1

2

I faced the similar problem. For me , the problem was occuring due to mismatch in cuda version. I am using conda environment.

In my system the nvcc --version showed the result as 10.0' , while I had mistakenly install the pytorch for cuda version10.1`

I removed the torch and torchvision and re-installed them using the following command:

conda install pytorch torchvision cuda100 -c pytorch.

Installing the package cuda100 solved the problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.