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

I can't import tensorflow_federated in my anaconda environment #3928

Open
b856741 opened this issue May 22, 2023 · 0 comments
Open

I can't import tensorflow_federated in my anaconda environment #3928

b856741 opened this issue May 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@b856741
Copy link

b856741 commented May 22, 2023

  • python version 3.11.0
  • tensorflow 2.12.0

Hello,when I tried to install tensorflow_federated by typing pip install tensorflow_federated
it shows up

.
.
.
Collecting absl-py~=0.9.0 (from tensorflow_federated)
  Using cached absl-py-0.9.0.tar.gz (104 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\user\AppData\Local\Temp\pip-install-pw9_u9gz\absl-py_d67c75a384b2496dadd0b8f1b1a9f56f\setup.py", line 34, in <module>
          raise RuntimeError('Python version 2.7 or 3.4+ is required.')
      RuntimeError: Python version 2.7 or 3.4+ is required.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

do you know how to fix it? Thanks.

@b856741 b856741 added the bug Something isn't working label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant