DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

Docker 环境下缓存工具版本错误

Open thredreams opened this issue 4 years ago • 6 comments

Describe the question

A clear and concise description of what the question is.

在Docker环境下,python setup.py install过程中失败,提示是 cachetools 5.2.0 is installed but cachetools<5.0,>=2.0.0 is required by {'google-auth'}

Environment (please complete the following information):

  • OS: window10、Dockers20.10。17
  • Python Version : 3.8.13

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context

  • 我觉得README里应该添加如何使用Docker的说明,属实是走了不少的弯路

thredreams avatar Sep 20 '22 07:09 thredreams

推荐使用anaconda创建虚拟环境,docker研究不深,所以会出现一定问题

tlk1997 avatar Sep 20 '22 07:09 tlk1997

但是我看Dockerfile里不是也用的miniconda虚拟环境吗? 我试图更新google-auth包,但是结果不行,所以我回退了cachetools到5.0.0以前的最新版本4.2.4

pip install cachetools==4.2.4

在这个过程中pip提示我之前升级google-auth的操作破坏了tensorboard2.4.1的依赖 image

thredreams avatar Sep 20 '22 08:09 thredreams

直接用conda,没有碰到过cachetools和google-auth这两个包的问题,所以还得麻烦自行研究一下

tlk1997 avatar Sep 20 '22 08:09 tlk1997

您好,可能是docker默认环境下版本的问题,建议您直接使用anaconda创建虚拟环境来使用deepke,我们会在近期的文档中补充这部分的描述。

zxlzr avatar Sep 20 '22 08:09 zxlzr

在Docker使用中确实出现了相当多的依赖问题,缺少一些包,我正在尝试缺啥装啥的策略,如果最后可行,我会试着再提一个issue将这些步骤分享出来。

thredreams avatar Sep 20 '22 08:09 thredreams

手动点赞👍🏻非常感谢

zxlzr avatar Sep 20 '22 08:09 zxlzr