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

Tensorflow 2.3 conda dependencies conflict with pip dependencies #27

Open
ZOUG opened this issue Dec 29, 2020 · 0 comments
Open

Tensorflow 2.3 conda dependencies conflict with pip dependencies #27

ZOUG opened this issue Dec 29, 2020 · 0 comments

Comments

@ZOUG
Copy link

ZOUG commented Dec 29, 2020

The conda dependencies differ from (and conflict with certain) pip dependencies. Details of tensorflow 2.3.0 are shown in the following. This is for both Python 3.7 and 3.8 environments.

conda dependencies pip dependencies
gast >=0.4.0,<0.4.1.0a0 gast==0.3.3
scipy >=1.5.2 scipy==1.4.1
keras-preprocessing >=1.1.0 keras-preprocessing<1.2,>=1.1.1
numpy >=1.16.6,<2.0a0 numpy<1.19.0,>=1.16.0

If only one of conda or pip is used, it would be fine. However, in some cases pip is needed to install packages in a conda environment. If a package built on top of tensorflow needs to be installed using pip, a conflict would cause problems.

I notice that the comments in the configuration file says "Some are higher than TF's lower bound. These are higher because they are the lowest version that we have.". But scipy 1.4.1 and gast 0.3.3 are available for Python 3.8 (as well as Python 3.7) on Anaconda (see below). So I wonder what that really means.

> conda search scipy=1.4.1 --info

...

scipy 1.4.1 py38h9439919_0
--------------------------
file name   : scipy-1.4.1-py38h9439919_0.conda
name        : scipy
version     : 1.4.1
build       : py38h9439919_0
...
md5         : cb1746d20633a0267a609b7882346f0d
timestamp   : 2020-02-07 17:17:46 UTC
dependencies:
  - blas 1.0 mkl
  - icc_rt >=2019.0.0
  - mkl >=2019.4,<2021.0a0
  - mkl-service >=2,<3.0a0
  - numpy >=1.14.6,<2.0a0
  - python >=3.8,<3.9.0a0
> conda search gast=0.3.3 --info

Loading channels: done
gast 0.3.3 py_0
---------------
file name   : gast-0.3.3-py_0.conda
name        : gast
version     : 0.3.3
build       : py_0
...
md5         : 59bdcc125a9b94505a63d10371bafec3
timestamp   : 2020-02-13 16:14:22 UTC
dependencies:
  - 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

1 participant