R
RunPod11mo ago
zole2271

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
zole2271
zole2271OP11mo ago
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)
ashleyk
ashleyk11mo ago
Create a venv
zole2271
zole2271OP11mo ago
I tried but I get an error. Also i tried to follow this guide, but the fields described there do not exist
zole2271
zole2271OP11mo ago
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
haris
haris11mo ago
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.
zole2271
zole2271OP11mo ago
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
haris
haris11mo ago
Have you tried to use a venv?
zole2271
zole2271OP11mo ago
I am trying now I did try, it installs flask but it does not run notebooks via venv so flask still does not work
haris
haris11mo ago
Any errors?
zole2271
zole2271OP11mo ago
No, installed ok But it useless
haris
haris11mo ago
I'll see if I can get another team member who is more familar with this issue to assist you, sorry for the trouble!
zole2271
zole2271OP11mo ago
I will try to run via line no problem thanks via line works, so maybe solved
haris
haris11mo ago
Ah that's great, and again, so sorry for the troubles!
zole2271
zole2271OP11mo ago
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
Want results from more Discord servers?
Add your server