cannot install flask
!pip install flask --force
ERROR: Cannot uninstall 'blinker'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
14 Replies
So many errors, seem almost impossible to make flask work on this platform
and support does not answer
Just one answer and after that they ignore me
Seem like this template is full of bugs
such as: ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.10/dist-packages/werkzeug/urls.py)
Create a venv
I tried but I get an error.
Also i tried to follow this guide, but the fields described there do not exist
RunPod Blog
Deploying Python Machine Learning models on RunPod, without any doc...
What if I told you, you can now deploy pure python machine learning models with zero-stress on RunPod! Excuse that this is a bit of a hacky workflow at the moment. We'll be providing better abstractions in the future!
Prerequisites and Notes
* The tutorial only works for containers installed purely
Hey there, would love to try and solve this with you, are you able to provide the error you've gotten?
Would also love to hear more about this, chances are we've made tons of changes to our platform since that blog post (around six months has passed), and it's likely deprecated now but I'll see if we can get that updated again.
Just this error with the latest flask:
!pip install flask --force
ERROR: Cannot uninstall 'blinker'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
When i try to install other versions, for example !pip install flask==2.2.5 it works but then it cannot import probably because some of requirements have wrong versions. I did try to fix error by installing packages that reported errors but still does not work.
###### I just use flask for inference
for other things runpod works for me
Have you tried to use a venv?
I am trying now
I did try, it installs flask but it does not run notebooks via venv
so flask still does not work
Any errors?
No, installed ok
But it useless
I'll see if I can get another team member who is more familar with this issue to assist you, sorry for the trouble!
I will try to run via line
no problem thanks
via line works, so maybe solved
Ah that's great, and again, so sorry for the troubles!
I mean you solved it here - https://blog.runpod.io/runpod-serverless-no-docker-stress/
RunPod Blog
Deploying Python Machine Learning models on RunPod, without any doc...
What if I told you, you can now deploy pure python machine learning models with zero-stress on RunPod! Excuse that this is a bit of a hacky workflow at the moment. We'll be providing better abstractions in the future!
Prerequisites and Notes
* The tutorial only works for containers installed purely