python - test_ssl.py 和 test_urllib2.py 测试在 python2.7 中失败
问题描述
test_ssl.py
root@yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python python test_ssl.py
Traceback (most recent call last):
File "test_ssl.py", line 7, in <module>
from test.script_helper import assert_python_ok
ImportError: No module named script_helper
test_urllib2.py
root@yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python test_urllib2.py
Traceback (most recent call last):
File "test_urllib2.py", line 3, in <module>
from test import test_urllib
ImportError: cannot import name test_urllib
我无法理解缺少哪个模块,因此面临此错误
解决方案
由于缺少 python 模块 libpython2.7-testsuite 测试失败
推荐阅读
- asp.net - 在 ajax 调用中上传到 ASP.NET MVC 网站后出现 http 500 错误
- generics - 实例化具有对变体记录的子类型访问权限的包时出现问题
- mysql - 我想在 laravel 中显示帖子和他们的所有评论
- html - 如何使用 CSS 过渡和 flex wrap 修复不需要的行为?
- reactjs - 在 useEffect 中取消订阅和异步任务
- pine-script - 标签上最大和最小条的日期
- reactjs - 将 React 元素传递给期望 DOM 元素的函数
- python - 如何从 Python 中的另一个文件调用函数内部定义的变量?
- php - 如何在php中将文件的每一行作为变量读取
- python - 为什么具有度数 = 1 的多项式特征的 LinearRegression 会给出不同的结果?