安装python 3.7.4时出现“ make test”错误

时间:2019-07-29 02:33:30

标签: python

我正在尝试安装python 3.7.4,但收到错误。我从(https://www.python.org/downloads/release/python-374/)下载了python,解压缩后,按照自述文件中的说明进行操作。

./configure
make
make test

但是运行命令“ make test”时出现以下错误。

Total duration: 12 min 30 sec
Tests result: FAILURE then FAILURE
Traceback (most recent call last):
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 987, in temp_dir
    yield path
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 1039, in temp_cwd
    yield cwd_dir
  File "/home/n10125116/Python-3.7.4/Lib/test/libregrtest/main.py", line 588, in main
    self._main(tests, kwargs)
  File "/home/n10125116/Python-3.7.4/Lib/test/libregrtest/main.py", line 653, in _main
    sys.exit(2)
SystemExit: 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 309, in _force_run
    return func(*args)
OSError: [Errno 16] Device or resource busy: '/home/n10125116/Python-3.7.4/build/test_python_29504/.nfs000000000c56294800000d64'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/n10125116/Python-3.7.4/Lib/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/n10125116/Python-3.7.4/Lib/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/n10125116/Python-3.7.4/Lib/test/__main__.py", line 2, in <module>
    main()
  File "/home/n10125116/Python-3.7.4/Lib/test/libregrtest/main.py", line 663, in main
    Regrtest().main(tests=tests, **kwargs)
  File "/home/n10125116/Python-3.7.4/Lib/test/libregrtest/main.py", line 588, in main
    self._main(tests, kwargs)
  File "/home/n10125116/Python-3.7.4/Lib/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 1039, in temp_cwd
    yield cwd_dir
  File "/home/n10125116/Python-3.7.4/Lib/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 992, in temp_dir
    rmtree(path)
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 431, in rmtree
    _rmtree(path)
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 411, in _rmtree
    _rmtree_inner(path)
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 410, in _rmtree_inner
    _force_run(path, os.unlink, fullname)
  File "/home/n10125116/Python-3.7.4/Lib/test/support/__init__.py", line 315, in _force_run
    return func(*args)
OSError: [Errno 16] Device or resource busy: '/home/n10125116/Python-3.7.4/build/test_python_29504/.nfs000000000c56294800000d64'
Makefile:1076: recipe for target 'test' failed
make: *** [test] Error 1

有人可以指导我该怎么做吗?谢谢。

0 个答案:

没有答案