我相信问题与PEX有关,但我不确定,这也可能是TF发行套件中的配置错误。
我正在尝试使用TF2.0(rc0)创建一个PEX文件,但失败。这是一个以全新的virtualenv开头的repro代码:
pip install -U pip
# got me pip-19.2.3
pip install pex
# got me pex-1.6.10
pip install tensorflow==2.0.0rc0
pip freeze
# shows:
# absl-py==0.8.0
# astor==0.8.0
# gast==0.2.2
# google-pasta==0.1.7
# grpcio==1.23.0
# h5py==2.9.0
# Keras-Applications==1.0.8
# Keras-Preprocessing==1.1.0
# Markdown==3.1.1
# numpy==1.17.1
# opt-einsum==3.0.1
# pex==1.6.10
# protobuf==3.9.1
# six==1.12.0
# tb-nightly==1.15.0a20190806
# tensorflow==2.0.0rc0
# termcolor==1.1.0
# tf-estimator-nightly==1.14.0.dev2019080601
# Werkzeug==0.15.5
# wrapt==1.11.2
pex -r <(pip freeze) -o tmp.pex
# fails on:
# Could not satisfy all requirements for tensorflow==2.0.0rc0:
# tensorflow==2.0.0rc0
我注意到tensorflow==2.0.0b1
可以正常工作,并且可能引起问题的一个不同之处是,b1
的分布称为manylinux1
,而rc0
是{{1} }。我对python发行版一无所知,但从其他线程看来,manylinux2010
是较新的版本。
是PEX还是TF错误?应该是manylinux2010
吗?我可以手动更改吗?甚至只是临时破解,直到解决?
谢谢!