https://prefect.io logo
Title
n

Nitin Bansal

02/28/2022, 1:58 AM
Collecting prefect Could not find a version that satisfies the requirement prefect (from versions: ) No matching distribution found for prefect
k

Kevin Kho

02/28/2022, 2:00 AM
Hi @Nitin Bansal, that’s really weird. Could you give me a longer traceback?
Seems from this it can be a Python version mismatch. Can you check by doing
which python
and
which pip
?
n

Nitin Bansal

02/28/2022, 2:05 AM
Ths is what i get
k

Kevin Kho

02/28/2022, 2:06 AM
That looks fine. What is your Python version?
n

Nitin Bansal

02/28/2022, 2:06 AM
3.8
k

Kevin Kho

02/28/2022, 2:09 AM
That should be fine. I think this error though is from using a 2.7 installation. Do you have one installed that it might be using?
I can replicate on 2.7, if not maybe try upgrading pip?
n

Nitin Bansal

02/28/2022, 2:20 AM
yeah python 2.7 is also installed
This is what I am getting after upgrading the pip
k

Kevin Kho

02/28/2022, 2:30 AM
Yeah pip looks to be using 2.7. Maybe you can use the
pip3
keyword? Though I’d suggest making an environment instead cuz this will probably come up when running scripts also
n

Nitin Bansal

02/28/2022, 2:42 AM
Go this error while installing using pip3
k

Kevin Kho

02/28/2022, 3:00 AM
It’s not pulling all of the available Dask versions. You might be on a Python before 3.6. One second
There is a suggestion here to remove the 2.7 site packages
n

Nitin Bansal

02/28/2022, 3:30 AM
Thanks, Let me try it
m

Matthias

02/28/2022, 12:53 PM
To ensure you are using the correct Python version, you could try to open a Python shell (version is shown above then). Suppose the correct version is say
python3
, you can pip install with
python3 -m pip
. This is the recommended approach btw