美文网首页
Ubuntu下非Root用户Python3解决modulenot

Ubuntu下非Root用户Python3解决modulenot

作者: EchoZou | 来源:发表于2018-07-03 03:27 被阅读0次

Tensorflow object_detection API 入门教程实现遇到的错误提示

Modulenetfounderror: no module named'_bz2'

这是因为从终端安装python3版本时,最新版本的python3.6+缺少这个文件。需要手动添加

解决方法是:

在终端执行以下命令:

$ sudo apt-get install libbz2-dev

其次重新编译Python3

$ cd Python-3.6.3

$ sudo ./configure --enable-optimozations

$ sudo make -j8

$ sudo make install

验证方法就是进入python3环境,看是否能导入bz2模块

$ python3

>>> import bz2

相关文章

网友评论

      本文标题:Ubuntu下非Root用户Python3解决modulenot

      本文链接:https://www.haomeiwen.com/subject/gygruftx.html