Skip to content

ModuleNotFoundError: No module named 'deepxde.nn.pytorch' 找不到nn文件夹下的pytorch文件 #1965

@Muxiang166

Description

@Muxiang166

我在测试他人的项目时,在虚拟环境里安装deepxde依赖并运行会发生以下问题:
I am testing a project from GitHub, and when I install the deepxde dependency in a virtual environment and run the project, I encounter the following issue:

Traceback (most recent call last):
File "D:\PythonProjects\pythonProject\TensorflowTest.py", line 3, in
from deepxde.nn.pytorch.nn import NN
ModuleNotFoundError: No module named 'deepxde.nn.pytorch'

请问是虚拟环境的问题吗?我是不是应该将环境换至本地环境?感谢回答。
Is this an issue with the virtual environment? Should I switch to using the local environment instead? Thank you for your response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions