AttributeError: module 'virtualenv' has no attribute 'create_environment'

背景:使用qaf的dist功能,执行运行包命令时初始虚拟化环境失败报错:
AttributeError: module 'virtualenv' has no attribute 'create_environment'

溯源:virtualenv 20.0.1 以上版本重构了,没有create_environment这个方法了

解决方案:

  • 使用新方法调用
  • 下载老包(16.7.12)
posted @ 2021-08-09 11:52  Klay_zhu  阅读(858)  评论(0编辑  收藏  举报