tensor2tensor
tensor2tensor copied to clipboard
Installation fails due to conflicting cloudpickle version
Hi, users are unable to run Tensor2tensor due to dependency conflict with cloudpickle package. As shown in the following full dependency graph of Tensor2tensor, gym requires ** cloudpickle~=1.2.0**,while tensorflow-probability requires ** cloudpickle >0.6.1 **.
According to pip’s “first found wins” installation strategy, cloudpickle 1.4.1 is the actually installed version. However, cloudpickle 1.4.1 does not satisfy cloudpickle~=1.2.0.
Dependency tree-----------
tensor2tensor - 1.15.5
| +- absl-py(install version:0.9.0 version range:*)
| +- bz2file(install version:0.98 version range:*)
| +- dopamine-rl(install version:3.0.1 version range:*)
| | +- absl-py (install version:0.9.0 version range:>=0.2.2)
| | +- gin-config (install version:0.3.0 version range:>=0.1.1)
| | | +- six (install version:1.14.0 version range:>=1.10.0)
| | +- gym (install version:0.14.0 version range:>=0.10.5)
| | | +- cloudpickle(install version:1.3.0 version range:>=1.2.0,<1.4.0)
| | | +- enum34(install version: version range:<.2,>=1.1.6)
| | | +- numpy(install version:1.18.2 version range:>=1.10.4)
| | | +- pyglet(install version:1.5.0 version range:>=1.4.0,<=1.5.0)
| | | +- scipy(install version:1.2.3 version range:*)
| | | +- six(install version:1.14.0 version range:*)
| | +- opencv-python (install version:4.1.0.25 version range:>=3.4.1.15)
| | +- Pillow (install version:7.1.1 version range:>=5.4.1)
| +- flask(install version:1.1.2 version range:*)
| | +- click(install version:7.1.1 version range:>=5.1)
| | +- itsdangerous(install version:1.1.0 version range:>=0.24)
| | +- Jinja2(install version:2.11.2 version range:>=2.10.1)
| | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | +- Werkzeug(install version:1.0.1 version range:>=0.15)
| +- future(install version:0.18.2 version range:*)
| +- gevent(install version:1.5.0 version range:*)
| +- gin-config(install version:0.3.0 version range:*)
| | +- six (install version:1.14.0 version range:>=1.10.0)
| +- google-api-python-client(install version:1.8.0 version range:*)
| | +- google-api-core(install version:1.17.0 version range:>=1.13.0,<2dev)
| | +- google-auth(install version:1.14.0 version range:>=1.4.1)
| | | +- cachetools(install version:4.1.0 version range:>=2.0.0,<5.0)
| | | +- pyasn1-modules(install version:0.2.8 version range:>=0.2.1)
| | | +- rsa(install version:4.0 version range:>=3.1.4,<4.1)
| | | | +- pyasn1(install version:0.4.8 version range:>=0.1.3)
| | | +- setuptools(install version:46.1.3 version range:>=40.3.0)
| | | +- six(install version:1.14.0 version range:>=1.9.0)
| | +- google-auth-httplib2(install version:0.0.3 version range:>=0.0.3)
| | | +- google-auth(install version:1.14.0 version range:*)
| | | | +- cachetools(install version:4.1.0 version range:>=2.0.0,<5.0)
| | | | +- pyasn1-modules(install version:0.2.8 version range:>=0.2.1)
| | | | +- rsa(install version:4.0 version range:>=3.1.4,<4.1)
| | | | +- setuptools(install version:46.1.3 version range:>=40.3.0)
| | | | +- six(install version:1.14.0 version range:>=1.9.0)
| | | +- httplib2(install version:0.17.2 version range:>=0.9.1)
| | +- httplib2(install version:0.18.1 version range:>=0.9.2,<1dev)
| | +- six(install version:1.14.0 version range:>=1.6.1,<2dev)
| | +- uritemplate(install version:3.0.1 version range:>=3.0.0,<4dev)
| +- gunicorn(install version:20.0.4 version range:*)
| | +- setuptools(install version:46.1.3 version range:>=3.0)
| +- gym(install version:0.14.0 version range:==0.14.0)
| | +- cloudpickle(install version:1.3.0 version range:>=1.2.0,<1.4.0)
| | +- enum34(install version: version range:<.2,>=1.1.6)
| | +- numpy(install version:1.18.2 version range:>=1.10.4)
| | +- pyglet(install version:1.5.0 version range:>=1.4.0,<=1.5.0)
| | +- scipy(install version:1.2.3 version range:*)
| | +- six(install version:1.14.0 version range:*)
| +- h5py(install version:2.10.0 version range:*)
| +- kfac(install version:0.2.0 version range:*)
| | +- numpy(install version:1.18.2 version range:*)
| | +- six(install version:1.14.0 version range:*)
| | +- tensorflow-probability(install version:0.7.0 version range:*)
| +- mesh-tensorflow(install version:0.1.13 version range:*)
| | +- absl-py(install version:0.9.0 version range:*)
| | +- future(install version:0.18.2 version range:*)
| | +- gin-config(install version:0.3.0 version range:*)
| | | +- six (install version:1.14.0 version range:>=1.10.0)
| | +- six(install version:1.14.0 version range:*)
| +- numpy(install version:1.18.2 version range:*)
| +- oauth2client(install version:4.1.3 version range:*)
| | +- httplib2(install version:0.17.2 version range:>=0.9.1)
| | +- pyasn1(install version:0.4.8 version range:>=0.1.7)
| | +- pyasn1-modules(install version:0.2.8 version range:>=0.0.5)
| | +- rsa(install version:4.0 version range:>=3.1.4)
| | | +- pyasn1(install version:0.4.8 version range:>=0.1.3)
| | +- six(install version:1.14.0 version range:>=1.6.1)
| +- opencv-python(install version:4.1.0.25 version range:*)
| +- Pillow(install version:7.1.1 version range:*)
| +- pypng(install version:0.0.20 version range:*)
| +- requests(install version:2.23.0 version range:*)
| | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | +- idna(install version:2.9 version range:>=2.5,<3)
| | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| +- scipy(install version:1.2.3 version range:*)
| +- six(install version:1.14.0 version range:*)
| +- sympy(install version:1.5.1 version range:*)
| +- tensorflow-datasets(install version:3.0.0 version range:*)
| +- tensorflow-gan(install version:1.0.0.dev0 version range:*)
| +- tensorflow-probability(install version:0.7.0 version range:==0.7.0)
| | +- cloudpickle(install version:1.3.0 version range:>0.6.1)
| +- tqdm(install version:4.45.0 version range:*)
Thanks for your help. Best, Neolith
Solution
- Ask your direct dependency gym to loosen the version range of cloudpickle to be >=1.2.0. @lukaszkaiser May I pull a request to solve this issue?
@rohan100jain,Could you help me review this issue? Thx :p