Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError:cannot import name 'model_fn' from 'tensorflow_estimator.python.estimator' #1

Open
SilenceWinter opened this issue Sep 27, 2020 · 2 comments

Comments

@SilenceWinter
Copy link

您好,能分享下最后版本的requirements.txt吗? 看了您的知乎文章,tf=1.14.0,但是安装了之后依旧报错,如题。

@hellonlp
Copy link
Owner

这个问题没有人反馈,其他人使用都没有问题,你再看一下是不是相关的依赖包有问题。另外,requirements.txt需要特殊安装的只有tensorflow的版本需要注意一下,其他都还好

@vijaylin
Copy link

用docker来跑可以跑,
docker pull floydhub/tensorflow:1.14-py3_aws.44
然后再容器中执行一下命令
pip install tensorflow_hub==0.9.0
pip install sentencepiece

python版本不倒致可能会有一些语法错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants