问题表现
To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible
ERROR: Cannot install tensorboard==1.10.0, tensorboard==1.11.0, tensorboard==1.12.0, tensorboard==1.12.1, tensorboard==1.12.2, tensorboard==1.13.0, tensorboard==1.13.1, tensorboard==1.14.0, tensorboard==1.15.0, tensorboard==1.6.0, tensorboard==1.7.0, tensorboard==1.8.0, tensorboard==1.9.0, tensorboard==2.0.0, tensorboard==2.0.1, tensorboard==2.0.2, tensorboard==2.1.0, tensorboard==2.1.1, tensorboard==2.10.0, tensorboard==2.10.1, tensorboard==2.11.0, tensorboard==2.11.2, tensorboard==2.12.0, tensorboard==2.12.1, tensorboard==2.12.2, tensorboard==2.12.3, tensorboard==2.13.0, tensorboard==2.14.0, tensorboard==2.14.1, tensorboard==2.15.0, tensorboard==2.15.1, tensorboard==2.15.2, tensorboard==2.16.0, tensorboard==2.16.1, tensorboard==2.16.2, tensorboard==2.2.0, tensorboard==2.2.1, tensorboard==2.2.2, tensorboard==2.3.0, tensorboard==2.4.0, tensorboard==2.4.1, tensorboard==2.5.0, tensorboard==2.6.0, tensorboard==2.7.0, tensorboard==2.8.0, tensorboard==2.9.0 and tensorboard==2.9.1 because these package versions have conflicting dependencies. The conflict is caused by: tensorboard 2.16.2 depends on grpcio>=1.48.2 tensorboard 2.16.1 depends on grpcio>=1.48.2 tensorboard 2.16.0 depends on grpcio>=1.48.2 tensorboard 2.15.2 depends on grpcio>=1.48.2 tensorboard 2.15.1 depends on grpcio>=1.48.2 tensorboard 2.15.0 depends on grpcio>=1.48.2 tensorboard 2.14.1 depends on grpcio>=1.48.2 tensorboard 2.14.0 depends on grpcio>=1.48.2 tensorboard 2.13.0 depends on grpcio>=1.48.2 tensorboard 2.12.3 depends on grpcio>=1.48.2 tensorboard 2.12.2 depends on grpcio>=1.48.2 tensorboard 2.12.1 depends on grpcio>=1.48.2 tensorboard 2.12.0 depends on grpcio>=1.48.2 tensorboard 2.11.2 depends on grpcio>=1.24.3 tensorboard 2.11.0 depends on grpcio>=1.24.3 tensorboard 2.10.1 depends on grpcio>=1.24.3 tensorboard 2.10.0 depends on grpcio>=1.24.3 tensorboard 2.9.1 depends on grpcio>=1.24.3 tensorboard 2.9.0 depends on grpcio>=1.24.3 tensorboard 2.8.0 depends on grpcio>=1.24.3 tensorboard 2.7.0 depends on grpcio>=1.24.3 tensorboard 2.6.0 depends on grpcio>=1.24.3 tensorboard 2.5.0 depends on grpcio>=1.24.3 tensorboard 2.4.1 depends on grpcio>=1.24.3 tensorboard 2.4.0 depends on grpcio>=1.24.3 tensorboard 2.3.0 depends on grpcio>=1.24.3 tensorboard 2.2.2 depends on grpcio>=1.24.3 tensorboard 2.2.1 depends on grpcio>=1.24.3 tensorboard 2.2.0 depends on grpcio>=1.24.3 tensorboard 2.1.1 depends on grpcio>=1.24.3 tensorboard 2.1.0 depends on grpcio>=1.24.3 tensorboard 2.0.2 depends on grpcio>=1.24.3 tensorboard 2.0.1 depends on grpcio>=1.24.3 tensorboard 2.0.0 depends on grpcio>=1.6.3 tensorboard 1.15.0 depends on grpcio>=1.6.3 tensorboard 1.14.0 depends on grpcio>=1.6.3 tensorboard 1.13.1 depends on grpcio>=1.6.3 tensorboard 1.13.0 depends on grpcio>=1.6.3 tensorboard 1.12.2 depends on grpcio>=1.6.3 tensorboard 1.12.1 depends on grpcio>=1.6.3 tensorboard 1.12.0 depends on grpcio>=1.6.3 tensorboard 1.11.0 depends on grpcio>=1.6.3 tensorboard 1.10.0 depends on protobuf>=3.4.0 tensorboard 1.9.0 depends on protobuf>=3.4.0 tensorboard 1.8.0 depends on protobuf>=3.4.0 tensorboard 1.7.0 depends on protobuf>=3.4.0 tensorboard 1.6.0 depends on protobuf>=3.4.0 To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
解决方案
根据报错信息,tensorboard无法安装,是因为任何版本的tensorboard,都无法与现有的grpcio 、protobuf两个包兼容。
根据官网的建议:https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
把这三个包一起pip install,让pip工具自己去寻找让这三个共存的版本
pip install tensorboard protobuf grpcio
(pytorch) xxx@xxxdeMBP learnPytorchProject % pip install tensorboard protobuf grpcio Collecting tensorboard Using cached tensorboard-2.16.2-py3-none-any.whl.metadata (1.6 kB) Collecting protobuf Downloading protobuf-5.26.0-cp37-abi3-macosx_10_9_universal2.whl.metadata (592 bytes) Collecting grpcio Downloading grpcio-1.62.1-cp39-cp39-macosx_10_10_universal2.whl.metadata (4.0 kB) Collecting absl-py>=0.4 (from tensorboard) Using cached absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB) Collecting markdown>=2.6.8 (from tensorboard) Downloading Markdown-3.6-py3-none-any.whl.metadata (7.0 kB) Requirement already satisfied: numpy>=1.12.0 in /Users/cuixun/opt/anaconda3/envs/pytorch/lib/python3.9/site-packages (from tensorboard) (1.26.4) Requirement already satisfied: setuptools>=41.0.0 in /Users/cuixun/opt/anaconda3/envs/pytorch/lib/python3.9/site-packages (from tensorboard) (68.2.2) Requirement already satisfied: six>1.9 in /Users/cuixun/opt/anaconda3/envs/pytorch/lib/python3.9/site-packages (from tensorboard) (1.16.0) Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard) Downloading tensorboard_data_server-0.7.2-py3-none-macosx_10_9_x86_64.whl.metadata (1.1 kB) Collecting werkzeug>=1.0.1 (from tensorboard) Downloading werkzeug-3.0.1-py3-none-any.whl.metadata (4.1 kB) Requirement already satisfied: importlib-metadata>=4.4 in /Users/cuixun/opt/anaconda3/envs/pytorch/lib/python3.9/site-packages (from markdown>=2.6.8->tensorboard) (7.0.1) Requirement already satisfied: MarkupSafe>=2.1.1 in /Users/cuixun/opt/anaconda3/envs/pytorch/lib/python3.9/site-packages (from werkzeug>=1.0.1->tensorboard) (2.1.3) Requirement already satisfied: zipp>=0.5 in /Users/cuixun/opt/anaconda3/envs/pytorch/lib/python3.9/site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard) (3.17.0) Downloading tensorboard-2.16.2-py3-none-any.whl (5.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 11.4 kB/s eta 0:00:00 Downloading protobuf-5.26.0-cp37-abi3-macosx_10_9_universal2.whl (404 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 404.0/404.0 kB 12.9 kB/s eta 0:00:00 Downloading grpcio-1.62.1-cp39-cp39-macosx_10_10_universal2.whl (10.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 13.9 kB/s eta 0:00:00 Downloading absl_py-2.1.0-py3-none-any.whl (133 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.7/133.7 kB 10.4 kB/s eta 0:00:00 Downloading Markdown-3.6-py3-none-any.whl (105 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 105.4/105.4 kB 11.9 kB/s eta 0:00:00 Downloading tensorboard_data_server-0.7.2-py3-none-macosx_10_9_x86_64.whl (4.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 12.3 kB/s eta 0:00:00 Downloading werkzeug-3.0.1-py3-none-any.whl (226 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 226.7/226.7 kB 11.7 kB/s eta 0:00:00 Installing collected packages: werkzeug, tensorboard-data-server, protobuf, grpcio, absl-py, markdown, tensorboard Successfully installed absl-py-2.1.0 grpcio-1.62.1 markdown-3.6 protobuf-5.26.0 tensorboard-2.16.2 tensorboard-data-server-0.7.2 werkzeug-3.0.1
标签:kB,00,版本,Python,ResolutionImpossible,grpcio,depends,tensorboard,1.24 From: https://www.cnblogs.com/frankcui/p/18078915