Solution: After linux open screen, enter conda environment, installation package such as torch import is unsuccessful

After opening the remote screen recently, import torch failed after entering the screen session to activate the conda environment

The main reason is that the corresponding conda environment was activated before opening the screen. For
example, in the following operation, my cuda10 environment was activated first, and then the screen
Insert picture description here
was activated. Then I activated the cuda10 environment in the screen session. I was unsuccessful in import torch.

Insert picture description here
Solution:
Before opening the screen session, do not activate the conda virtual environment first, and do not open the screen
deeper in the conda environment. The reason does not continue to check

Guess you like

Origin blog.csdn.net/eight_Jessen/article/details/111174786