[英]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.