Conflicts with Spacy language models and Streamlit? #9717
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @robertpfaff , it seems that there's a conflict between (1) the model version Streamlit is looking for and (2) the one installed in the environment. The likely explanation is that it's an environment problem. For example, this error message looks for OSError: [E053]
Could not read config.cfg from C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\en_core_web_sm\en_core_web_sm-2.2.0\config.cfg The paths also look different. In the Some options you have for a fix
$ C:\Users\rober\AppData\Local\Programs\Python\Python310\python.exe -m download en_core_web_sm This should install the updated $ py -m download en_core_web_sm
|
Beta Was this translation helpful? Give feedback.
Hi @robertpfaff , it seems that there's a conflict between (1) the model version Streamlit is looking for and (2) the one installed in the environment.
The likely explanation is that it's an environment problem. For example, this error message looks for
en_core_web_sm-2.2.0
, but we haveen_core_web_sm-3.1.0
installed as shown in thevalidate
command (based from your first image):The paths also look different. In the
validate
command, we haveC:\Users\rober\AppData\Local\Programs\Python\Python39
but in the traceback, we have…