When I used: pip install tensorflow pydantic, it displayed:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pydantic-core 2.0.1 requires typing-extensions>=4.6.0; platform_python_implementation != "PyPy", but you have typing-extensions 4.5.0 which is incompatible. Successfully installed pydantic-1.10.10 tensorflow-2.13.0rc2 tensorflow-macos-2.13.0rc2 typing-extensions-4.5.0
After I pip install --upgrade typing-extensions, it displayed: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorflow-macos 2.13.0rc2 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.7.0 which is incompatible. Successfully installed typing-extensions-4.7.0
When I used a test case in practice, it displayed: python pipeline/policy_gradient.py --dataset compressed-animals Traceback (most recent call last): File "/Users/username/workspace/aigc/ddpo/pipeline/policy_gradient.py", line 20, in <module> import ddpo File "/Users/username/workspace/aigc/ddpo/ddpo/init.py", line 3, in <module> from . import training File "/Users/username/workspace/aigc/ddpo/ddpo/training/init.py", line 4, in <module> from .prompts import make_prompts File "/Users/username/workspace/aigc/ddpo/ddpo/training/prompts.py", line 7, in <module> import inflect File "/Users/username/miniconda/envs/aigc/lib/python3.9/site-packages/inflect/init.py", line 77, in <module> from pydantic.typing import Annotated ImportError: cannot import name 'Annotated' from 'pydantic.typing' (/Users/username/miniconda/envs/aigc/lib/python3.9/site-packages/pydantic/typing.py)