我有一些套餐,我试图将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:\...
,但没有运气,知道如何解决此问题?