Tox WARNING:test command found but not installed in testenv

后端 未结 4 1183
甜味超标
甜味超标 2021-02-19 13:11

I am using tox for my project.

Here is my tox.ini file:

[tox]
envlist =
    py27,
    lint,
    coverage

skipsdist = True

[testenv:py27]
dep         


        
4条回答
  •  醉梦人生
    2021-02-19 13:42

    https://tox.readthedocs.io/en/latest/config.html

    here ,set this option,maybe,you pass

    sitepackages=false(true|false) Set to true if you want to create virtual environments that also have access to globally installed packages.

    Warning In cases where a command line tool is also installed globally you have to make sure that you use the tool installed in the virtualenv by using python -m (if supported by the tool) or {envbindir}/.

    If you forget to do that you will get a warning like this:

    WARNING: test command found but not installed in testenv
        cmd: /path/to/parent/interpreter/bin/
        env: /foo/bar/.tox/python
    Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
    

提交回复
热议问题