简体   繁体   English

ModuleNotFoundError: 没有名为“torch_scope”的模块

[英]ModuleNotFoundError: No module named 'torch_scope'

Using the macOS terminal, I'm trying to run ./autoner_train.sh by following this guide on GitHub.使用 macOS 终端,我尝试按照 GitHub 上的本指南运行./autoner_train.sh

I have activated my Conda environment and check my PyTorch version我已激活我的Conda环境并检查我的PyTorch版本

(pytorch_env) myname (master) AutoNER $ python -c "import torch; print(torch.__version__)"
1.3.1

After that, when running, I get the following error之后,在运行时,我收到以下错误

ModuleNotFoundError: No module named 'torch_scope' ModuleNotFoundError: 没有名为“torch_scope”的模块

I don't know where's the problem.我不知道问题出在哪里。 I have installed everything and I tried googling the problem, all I found is that I need PyTorch installed, which I already have.我已经安装了所有东西,我试着用谷歌搜索这个问题,我发现我需要安装PyTorch ,我已经有了。

I the documentation at the Dependencies section you can read:我可以阅读依赖项部分的文档:

Dependencies依赖关系

This project is based on python>=3.6 .本项目基于python>=3.6 The dependent package for this project is listed as below:本项目的依赖包如下:

numpy==1.13.1 tqdm torch-scope>=0.5.0 pytorch==0.4.1

So you need to install torch-scope>=0.5.0 too:所以你也需要安装torch-scope>=0.5.0

pip install torch-scope

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“torch”的模块 - ModuleNotFoundError: No module named 'torch' Conda - ModuleNotFoundError:没有名为“火炬”的模块 - Conda - ModuleNotFoundError: No module named 'torch' 导入火炬 ModuleNotFoundError: 没有名为“火炬”的模块 - import torch ModuleNotFoundError: No module named 'torch' ModuleNotFoundError:没有名为“torch.utils.serialization”的模块 - ModuleNotFoundError: No module named 'torch.utils.serialization' ModuleNotFoundError:没有名为“torch.utils.benchmark”的模块 - ModuleNotFoundError: No module named 'torch.utils.benchmark' ModuleNotFoundError:没有名为“torch”的模块(仅限 vscode) - ModuleNotFoundError: No module named 'torch'(on vscode only) 问题 ModuleNotFoundError: 没有名为“torch._C”的模块 - Problem ModuleNotFoundError: No module named 'torch._C' 导入 torch.fx ModuleNotFoundError:没有名为“torch.fx”的模块 - import torch.fx ModuleNotFoundError: No module named 'torch.fx' ModuleNotFoundError:没有名为“torch.nn”的模块; “火炬”不是 Mac OS 上的 package - ModuleNotFoundError: No module named 'torch.nn'; 'torch' is not a package on Mac OS Python PyTorch 错误:ModuleNotFoundError:没有名为“torch.utils.tensorboard”的模块 - Python PyTorch Error: ModuleNotFoundError: No module named 'torch.utils.tensorboard'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM