Installing vta with docker-cpu image, but running simulation error

Following the VTA documentation, an error occurred during VTA simulation:
python3 tvm/vta/tests/python/integration/test_benchmark_topi_conv2d.py

Traceback (most recent call last):
File “tvm/vta/tests/python/integration/test_benchmark_topi_conv2d.py”, line 26, in
import tvm
ModuleNotFoundError: No module named ‘tvm’

You need to add TVM python library to your PYTHONPATH.

See how TVM is installed: https://docs.tvm.ai/install/from_source.html

I launch a tvmai/demo-cpu image,and export PYTHONPATH=~tvm/vta/python:${PYTHONPATH},then run the script:python3 tvm/vta/tests/python/integration/test_benchmark_topi_conv2d.py,ModuleNotFoundError: No module named ‘tvm’

I was referring to this paragraph: https://docs.tvm.ai/install/from_source.html#tvm-package

export TVM_HOME=/path/to/tvm
export PYTHONPATH=$TVM_HOME/python:$TVM_HOME/topi/python:$TVM_HOME/nnvm/python:${PYTHONPATH}

i give up using docker……i install tvm from source,when i build tvm and related libraries use following command:
cd build
cmake …
make -j4
the log is:
Scanning dependencies of target vta_fsim
Scanning dependencies of target vta_tsim
Scanning dependencies of target tvm_runtime
Scanning dependencies of target tvm
[ 0%] Building CXX object CMakeFiles/vta_fsim.dir/vta/src/device_api.cc.o
[ 0%] Building CXX object CMakeFiles/vta_tsim.dir/vta/src/device_api.cc.o
[ 0%] Building CXX object CMakeFiles/tvm_runtime.dir/src/runtime/registry.cc.o
[ 1%] Building CXX object CMakeFiles/tvm.dir/src/api/api_arith.cc.o
[ 2%] Building CXX object CMakeFiles/vta_fsim.dir/vta/src/runtime.cc.o
[ 2%] Building CXX object CMakeFiles/vta_tsim.dir/vta/src/runtime.cc.o
In file included from /home/qg/tvm/vta/src/runtime.cc:29:0:
/home/qg/tvm/vta/include/vta/hw_spec.h:109:6: error: ‘VTA_LOG_WGT_BUFF_SIZE’ was not declared in this scope
(VTA_LOG_WGT_BUFF_SIZE - VTA_LOG_BLOCK_OUT - VTA_LOG_BLOCK_IN - VTA_LOG_WGT_WIDTH + 3)
^
/home/qg/tvm/vta/include/vta/hw_spec.h:319:29: note: in expansion of macro ‘VTA_LOG_WGT_BUFF_DEPTH’
uint64_t wgt_factor_out : VTA_LOG_WGT_BUFF_DEPTH;
^
/home/qg/tvm/vta/include/vta/hw_spec.h:109:6: error: ‘VTA_LOG_WGT_BUFF_SIZE’ was not declared in this scope
(VTA_LOG_WGT_BUFF_SIZE - VTA_LOG_BLOCK_OUT - VTA_LOG_BLOCK_IN - VTA_LOG_WGT_WIDTH + 3)
^
/home/qg/tvm/vta/include/vta/hw_spec.h:321:29: note: in expansion of macro ‘VTA_LOG_WGT_BUFF_DEPTH’
uint64_t wgt_factor_in : VTA_LOG_WGT_BUFF_DEPTH;
^
In file included from /home/qg/tvm/vta/src/runtime.cc:29:0:
/home/qg/tvm/vta/include/vta/hw_spec.h:109:6: error: ‘VTA_LOG_WGT_BUFF_SIZE’ was not declared in this scope
(VTA_LOG_WGT_BUFF_SIZE - VTA_LOG_BLOCK_OUT - VTA_LOG_BLOCK_IN - VTA_LOG_WGT
^
/home/qg/tvm/vta/include/vta/hw_spec.h:319:29: note: in expansion of macro ‘VTA_LOG_WGT_BUFF_DEPTH’
uint64_t wgt_factor_out : VTA_LOG_WGT_BUFF_DEPTH;
^
/home/qg/tvm/vta/include/vta/hw_spec.h:109:6: error: ‘VTA_LOG_WGT_BUFF_SIZE’ was not declared in this scope
(VTA_LOG_WGT_BUFF_SIZE - VTA_LOG_BLOCK_OUT - VTA_LOG_BLOCK_IN - VTA_LOG_WGT
^
/home/qg/tvm/vta/include/vta/hw_spec.h:321:29: note: in expansion of macro ‘VTA_LOG_WGT_BUFF_DEPTH’
uint64_t wgt_factor_in : VTA_LOG_WGT_BUFF_DEPTH;
^
/home/qg/tvm/vta/include/vta/hw_spec.h:109:6: error: ‘VTA_LOG_WGT_BUFF_SIZE’ was not declared in this scope
(VTA_LOG_WGT_BUFF_SIZE - VTA_LOG_BLOCK_OUT - VTA_LOG_BLOCK_IN - VTA_LOG_WGT_WIDTH + 3)
^
/home/qg/tvm/vta/include/vta/hw_spec.h:409:25: note: in expansion of macro ‘VTA_LOG_WGT_BUFF_DEPTH’
uint32_t wgt_idx : VTA_LOG_WGT_BUFF_DEPTH;
^
/home/qg/tvm/vta/include/vta/hw_spec.h:109:6: error: ‘VTA_LOG_WGT_BUFF_SIZE’ was not declared in this scope
(VTA_LOG_WGT_BUFF_SIZE - VTA_LOG_BLOCK_OUT - VTA_LOG_BLOCK_IN - VTA_LOG_WGT
^
/home/qg/tvm/vta/include/vta/hw_spec.h:409:25: note: in expansion of macro ‘VTA_LOG_WGT_BUFF_DEPTH’
uint32_t wgt_idx : VTA_LOG_WGT_BUFF_DEPTH;
^
/home/qg/tvm/vta/src/runtime.cc:42:1: error: static assertion failed: VTA_UOP_WIDTH do not match VTAUop size
static_assert(VTA_UOP_WIDTH == sizeof(VTAUop) * 8,
^
/home/qg/tvm/vta/src/runtime.cc:42:1: error: static assertion failed: VTA_UOP_WIDTH do not match VTAUop size
static_assert(VTA_UOP_WIDTH == sizeof(VTAUop) * 8,
^