ModuleNotFoundError: No module named ‘fire‘

https://forums.fast.ai/t/no-module-named-fire/79635

Traceback (most recent call last):
  File "eval_rcnn.py", line 11, in <module>
    from tools.kitti_object_eval_python.evaluate import evaluate as kitti_evaluate
  File "/home/iser/git/PointRCNN/tools/../tools/kitti_object_eval_python/evaluate.py", line 2, in <module>
    import fire
ModuleNotFoundError: No module named 'fire'

 

 

开始使用

pip3 install fire

安装 Successfully installed fire-0.3.1

后又使用:

 !pip3 install fire

 

(PointRCNN362) iser@iser:~/git/PointRCNN/tools$ pip3 install fire
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting fire
  Downloading http://mirrors.aliyun.com/pypi/packages/34/a7/0e22e70778aca01a52b9c899d9c145c6396d7b613719cd63db97ffa13f2f/fire-0.3.1.tar.gz (81 kB)
     |████████████████████████████████| 81 kB 18.0 MB/s 
Requirement already satisfied: six in /home/iser/.local/lib/python3.6/site-packages (from fire) (1.15.0)
Requirement already satisfied: termcolor in /home/iser/.local/lib/python3.6/site-packages (from fire) (1.1.0)
Building wheels for collected packages: fire
  Building wheel for fire (setup.py) ... done
  Created wheel for fire: filename=fire-0.3.1-py2.py3-none-any.whl size=111006 sha256=4cb088f470d4cf68a8bcea6a3750061139a9aeb546a7f678d547cd1f09948e62
  Stored in directory: /home/iser/.cache/pip/wheels/6c/08/bc/758395015e6eead4f2ac40440cd5554532fec2628db1a75240
Successfully built fire
Installing collected packages: fire
Successfully installed fire-0.3.1
(PointRCNN362) iser@iser:~/git/PointRCNN/tools$ !pip3 install fire
pip3 install fire install fire
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: fire in /home/iser/anaconda3/envs/PointRCNN362/lib/python3.6/site-packages (0.3.1)
Requirement already satisfied: termcolor in /home/iser/.local/lib/python3.6/site-packages (from fire) (1.1.0)
Requirement already satisfied: six in /home/iser/.local/lib/python3.6/site-packages (from fire) (1.15.0)
Collecting install
  Downloading http://mirrors.aliyun.com/pypi/packages/f0/a5/fd2eb807a9a593869ee8b7a6bcb4ad84a6eb31cef5c24d1bfbf7c938c13f/install-1.3.4-py3-none-any.whl (3.1 kB)
Installing collected packages: install
Successfully installed install-1.3.4

整个过程 是参照 :https://forums.fast.ai/t/no-module-named-fire/79635  

记录一下:

 

fastai v2 and the new course were released on August 21st. fastai v2 is not API-compatible with fastai v1 (it’s a from-scratch rewrite). It’s much easier to use, more powerful, and better documented than v1, and there’s even a book (624 pages!) about it. The book is also available for free as Jupyter notebooks. fastai v2 is documented here: http://docs.fast.ai/ .

To see updates to fastai v2, please see the following thread:

 Major new changes and features fastai users

This topic is for announcements of all breaking changes in the API or new features you can use. You should subscribe to it to receive notifications about those. It’s locked and closed so that only the admins can post in it. The  developer chat is the place to discuss development of the library. The full list of changes is always available in  the changelog.

To get notified of changes to that thread, please selecting “Watching” from the menu at the bottom:

 

image

 

fastai v2 only works with the 2020 version of the course. It won’t work with any previous version. If you’re currently working through one of the existing courses, keep going!  The basic concepts you’re learning will be just as useful for fastai v2. There is no 2020 version of part 2 of the course recorded yet, and we don’t have a date for when that might happen.

The 2020 version of the course includes material covering both machine learning and deep learning. So there won’t be a separate “Introduction to Machine Learning” (although the old one will still be available).

fastai v1 will continue to be available, and we’ll continue to provide bug fixes (and accept pull requests for it). To pin your fastai version to v1 (i.e., to avoid it upgrading automatically to v2), run the following command (assuming you use conda):

 echo 'fastai 1.*' >> $CONDA_PREFIX/conda-meta/pinned

Then, when you’re ready to upgrade to v2, remove the $CONDA_PREFIX/conda-meta/pinned file.

The github repo for fastai v1 will shortly be renamed to fastai/fastai1, and the repo for v2 will shortly be renamed from fastai/fastai2 to fastai/fastai.

If you’re interested in getting involved in fastai2 development, or just watching my live coding sessions (which I do most days), connect to our Discord server, which is where I stream my live coding, and there’s some real-time fastai2 development discussion:

 Discord

 

Join the fast.ai Discord Server!

Check out the fast.ai community on Discord - hang out with 2,510 other members and enjoy free voice and text chat.

All fastai development forum discussion is in #fastai-users:fastai-dev. The forums are the best place to ask questions.

 

No module named ‘fire’

Part 2 (2019)

Sep 2020

3 / 3

Sep 2020

Sep 2020

rghoshRitobrata Ghosh

Sep '20

I am running the 00_exports.ipynb notebook, and I cannot use the notebook2script.py script.

When I run !python notebook2script.py 00_exports.ipynb, this error is shown-

ModuleNotFoundError: No module named 'fire'

 Full error message

I have chosen the safest environment to run old notebooks- a predefined container in Paperspace.

What do I do about this?

 Solved by rghosh in post #3

I just ran !pip install fire And that solved it for me. I should have never posted this topic. I did it because I thought I am in dependency hell again after I tried to do the old ML course from fast.ai. But I googled the library. It seemed active, and I realized my mistake. I just installed it an…

1 Reply

1

  • created

    Sep '20

  • last reply

    Sep '20

  • 2

    replies

  • 208

    views

  • 2

    users

  • 3

    likes

moein

Sep '20

 

 rghosh:

What do I do about this

Had the same problem once. I went down the tree of modules where it was first defined and as I remember it was not doing a significant job so I commented it out where it was first imported or defined. Works well for the rest of your journey.

 

 

rghoshRitobrata Ghosh

Sep '20

I just ran

!pip install fire

And that solved it for me. I should have never posted this topic. I did it because I thought I am in dependency hell again after I tried to do the old ML course from fast.ai. But I googled the library. It seemed active, and I realized my mistake. I just installed it and the code ran correctly.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ModuleNotFoundError: No module named 'tools.eval' 这个错误是因为你的代码中引用了一个名为'tools.eval'的模块,但是系统找不到这个模块。有几种可能的原因导致这个错误。 首先,你需要检查你的代码中是否存在一个叫做'tools.eval'的模块的引用,确保你引用的模块名字没有错误。 其次,这个错误也可能是因为你没有安装名为'tools.eval'的模块。你可以通过使用pip install命令来安装相应的模块。例如,如果你想安装一个叫做'tools.eval'的模块,你可以运行pip install tools.eval命令来进行安装。 最后,这个错误还可能是由于你的环境变量配置不正确导致的。你可以检查你的环境变量,确保你的Python解释器可以找到这个模块。 总之,如果你遇到了ModuleNotFoundError: No module named 'tools.eval'这个错误,你需要仔细检查你的代码、安装相应的模块以及配置正确的环境变量来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [ModuleNotFoundError: No module namedfire](https://blog.csdn.net/lgyuWT/article/details/112095534)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [ModuleNotFoundError: No module named ‘paramiko’](https://blog.csdn.net/weixin_43425561/article/details/124957656)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值