79621162

Date: 2025-05-14 09:42:48
Score: 3.5
Natty:
Report link
PS E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning> python --version
Python 3.10.11
PS E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning> python -m venv tff_env
PS E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning> .\tff_env\Scripts\activate
(tff_env) PS E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning> python -m pip install --upgrade pip
...
Successfully installed pip-25.1.1
(tff_env) PS E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning> pip install tensorflow-federated
...
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning\tff_env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
        File "E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning\tff_env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
        File "E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning\tff_env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\ADMIN\AppData\Local\Temp\pip-build-env-0s9vjp46\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\ADMIN\AppData\Local\Temp\pip-build-env-0s9vjp46\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
          self.run_setup()
        File "C:\Users\ADMIN\AppData\Local\Temp\pip-build-env-0s9vjp46\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\ADMIN\AppData\Local\Temp\pip-build-env-0s9vjp46\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
          exec(code, locals())
        File "<string>", line 34, in <module>
      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: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(tff_env) PS E:\NAM3\DO_AN_CHUYEN_NGANH\Federated Learning> pip install tensorflow-federated==0.28.0
...
INFO: pip is looking at multiple versions of tensorflow-federated to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following yanked versions: 0.4.32
ERROR: Ignored the following versions that require a different python version: 0.34.0 Requires-Python ~=3.9.0; 0.36.0 Requires-Python ~=3.9.0
ERROR: Could not find a version that satisfies the requirement jaxlib~=0.3.10 (from tensorflow-federated) (from versions: 0.4.13, 0.4.14, 0.4.16, 0.4.17, 0.4.18, 0.4.19, 0.4.20, 0.4.21, 0.4.22, 0.4.23, 0.4.24, 0.4.25, 0.4.26, 0.4.27, 0.4.28, 0.4.29, 0.4.30, 0.4.31, 0.4.33, 0.4.34, 0.4.35, 0.4.36, 0.4.38, 0.5.0, 0.5.1, 0.5.3, 0.6.0)
ERROR: No matching distribution found for jaxlib~=0.3.10

Please help me
Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Please help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tran Ngoc Hau