我正在尝试创建一个简单的分类网络应用程序,参考文章 -https://towardsdatascience.com/deploying-an-image-classification-web-app-with-python-3753c46bb79。我正在 Google colab env 中尝试这篇文章,在创建流线型 webapp 时,我在运行命令行期间收到以下错误 -
streamlit run rps_app.py
错误
ContextualVersionConflict Traceback (most recent call last)
<ipython-input-15-7d4ea1e3639a> in <module>()
1 import numpy as np
----> 2 import streamlit as st
3 import tensorflow as tf
4 from PIL import Image, ImageOps
5
4 frames
/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py in resolve(self, requirements, env, installer, replace_conflicting, extras)
789 # Oops, the "best" so far conflicts with a dependency
790 dependent_req = required_by[req]
--> 791 raise VersionConflict(dist, req).with_context(dependent_req)
792
793 # push the new requirements onto the stack
ContextualVersionConflict: (ipykernel 4.10.1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('ipykernel>=5.1.2; python_version >= "3.4"'), {'pydeck'})``