找不到python 3.6模块'cmath' [英] python 3.6 module 'cmath' is not found
问题描述
我刚刚安装了 Ubuntu 18.04 LTS.运行 python 脚本后,我收到此错误:
I have just installed Ubuntu 18.04 LTS. After running a python script, I'm receiving this error:
ModuleNotFoundError: 没有名为cmath"的模块
ModuleNotFoundError: No module named 'cmath'
我知道应该已经安装了 cmath.我发现了这个问题 Python 3.7 cmath module import error 但它是相关的到 python 3.7 .它也影响python 3.6吗?你有什么想法如何解决吗?谢谢!
I know that cmath should be already installed. I have found this question Python 3.7 cmath module import error but it's related to python 3.7 . Does it also affects python 3.6? Do you have any ideas how to fix it? Thank you!
Python 版本为 3.6.5
Python version is 3.6.5
推荐答案
我刚刚将 Python 版本重新安装到 3.6.6(使用 apt-get
)并且一切正常.
I have just reinstalled Python version to 3.6.6 (using apt-get
) and everything is working fine.
这篇关于找不到python 3.6模块'cmath'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!