请教各位高手,在电脑上安装了anaconda,ide是visual studio,编译环境设置为anaconda。在代码中import cmath库,但是在代码里调用cmath.num_sqrt函数时报错,module 'cmath' has no attribute 'num_sqrt',看网上说是这个库没有安装上,但我在命令提示符里查了下,这个库是装了的,不知道为什么还会报错,求指导,先谢过了。
...全文
3534打赏收藏
visual studio调用cmath库失败
请教各位高手,在电脑上安装了anaconda,ide是visual studio,编译环境设置为anaconda。在代码中import cmath库,但是在代码里调用cmath.num_sqrt函数时报错,module 'cmath' has no attribute 'num_sqrt',看网上说是这个库没有安装上,但我在命令提示符里查了下,这个库是装了的,不知道为什么还会报错,求指导,先谢过了。