pytest和ValueError: Expect x to not have duplicates(个人笔记)

1.项目在新环境报错为没有pytest
解决办法:
在设置里面的Tools里面的某个选项改为(如下图)
pytest和ValueError: Expect x to not have duplicates(个人笔记)_第1张图片
2.同一个项目在旧电脑正常运行,到了新电脑新环境莫名报错
报错为
interpolate.interp1d里面的某个函数报错
具体报错为:ValueError: Expect x to not have duplicates
解决:
根据interpolate.interp1d可以发现这个是scipy库里面的函数,直接将新环境的scipy(1.10.1)版本换为旧电脑的版本1.7.1

你可能感兴趣的:(pytest,笔记,python)