AnacondaRecipes / repodata-hotfixes

Changes to package metadata to fix behavior
BSD 3-Clause "New" or "Revised" License
14 stars 20 forks source link

The command `conda install tensorflow-gpu` installs incompatible `numpy` version #215

Open chien-liu opened 8 months ago

chien-liu commented 8 months ago

Problem description

conda install tensorflow-gpu installs numpy==1.26.0, which is incompatible with tensorflow==2.4.1.

Reproduce the issue

$ conda create -n tf-gpu
$ conda activate tf-gpu
$ conda install tensorlfow-gpu
$ python
>>> import tensorflow
...
AttributeError: module 'numpy' has no attribute 'object'.
`np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. 
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
rmsValue9232 commented 6 months ago

Any solution to this yet? I am having the exact same issue.

marszub commented 6 months ago

Is there any workaround for now I could use? I can't install working tensorflow

boldorider4 commented 3 months ago

you can try installing an older version of numpy e.g. conda install numpy=1.23