尝试使用Windows路径运行tox命令时出现AssertionError

时间:2015-05-05 12:52:27

标签: python python-2.7 tox

我有一些套餐,我试图将tox与我的setuptools进行整合。

我已安装tox,anc创建了以下tox.ini文件:

[tox]
envlist = py27

[testenv]
commands = py.test
deps=   -r{toxinidir}/tools/pip-requires
        -r{toxinidir}/tools/test-requires

然后我tox并获得以下内容:

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\virtualenv.py", line 2352, in <module>
    main()
  File "C:\Python27\lib\site-packages\virtualenv.py", line 825, in main
    symlink=options.symlink)
  File "C:\Python27\lib\site-packages\virtualenv.py", line 985, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "C:\Python27\lib\site-packages\virtualenv.py", line 1181, in install_python
    copy_required_modules(home_dir, symlink)
  File "C:\Python27\lib\site-packages\virtualenv.py", line 1119, in copy_required_modules
    dst_filename = change_prefix(filename, dst_prefix)
  File "C:\Python27\lib\site-packages\virtualenv.py", line 1084, in change_prefix
    (filename, prefixes)
AssertionError: Filename C:\Python27\Lib\os.py does not start with any of these prefixes: ['c:\\python27']
Running virtualenv with interpreter c:\python27\python.exe

我已尝试将PYTHONPATH(窗口)更改为c:\... pr C:\...,但没有运气,知道如何解决此问题?

0 个答案:

没有答案