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

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

Open
chien-liu opened this issue Nov 17, 2023 · 3 comments
Assignees

Comments

@chien-liu
Copy link

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
Copy link

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

@marszub
Copy link

marszub commented Jan 12, 2024

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

@ryanskeith ryanskeith self-assigned this Feb 28, 2024
@boldorider4
Copy link

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

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

5 participants