Has anybody successfully installed Prefect on a GC...
# prefect-community
d
Has anybody successfully installed Prefect on a GCP Compute Engine instance? I'm following this tutorial but running into some issues during the installation: https://medium.com/the-prefect-blog/prefect-server-101-deploying-to-google-cloud-platform-47354b16afe2
Copy code
ModuleNotFoundError: No module named 'markupsafe'
k
This is weird. What is your Python version?
d
3.7.5
k
What is your OS for the compute engine?
d
Ubuntu 18.04
k
I’ve done this before and it’s worked for me. If I have to guess, you pip might be using Python 2.7 but I’m not super sure. You could also try installing that library manually?
d
I'm using
python3.7 -m pip install .
to install everything so don't think it's a Python version issue.
I've tried a few things to change the versions of Jinja2 and Markupsafe but nothing has worked so far
I'll keep looking into it
a
try using Ubuntu 20.04 LTS instead - it comes prepackaged with Python 3.8 it's hard to make it work on Ubuntu 18.04 since it uses Python 3.6 and Prefect 1.0 requires >= Python 3.7
1
also, do you know about Prefect 2.0 already? if you're just getting started, you may start with Prefect 2.0 directly
d
Okay, excellent, I'll look into this later! I was just following the tutorial for ease but I'll see if I can get that working.
👍 1
Am I missing the concept of how this works? I still can't quite understand how we set up an "Instance" of prefect on a VM for example? Or do we have to utilise Prefect Cloud along with Prefect 2.0?
a
For Prefect 2.0 we have Cloud 2.0 You can deploy it e.g. to a VM pretty much the same way as you would with any Python web app - install the required libraries incl. SQLite if you use this backend and then start the services. Check this page for a remote OSS installation