Collecting prefect Could not find a version that...
# prefect-community
n
Collecting prefect Could not find a version that satisfies the requirement prefect (from versions: ) No matching distribution found for prefect
k
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
Ths is what i get
k
That looks fine. What is your Python version?
n
3.8
k
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
yeah python 2.7 is also installed
This is what I am getting after upgrading the pip
k
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
Go this error while installing using pip3
k
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
Thanks, Let me try it
m
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