Pip3.7 pythonanywhere installing openai, trouble installing pandas 1.2.3

Hi the openai module has a requirement of pandas1.2.3 and pandas 1.2.3 is failing to install for me over on pythonanywhere. I tried:

pip3.7 install --user openai

which failed stating no matching distribution found for pandas>=1.2.3 (from openai). So I tried manually to install that version of pandas with:

pip3.7 install --user pandas==1.2.3

Which is giving me the following output:

Could not find a version that satisfies the requirement pandas==1.2.3 (from versions: 0.1, 0.2, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.6.1, 0
.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16
.1, 0.16.2, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21.0, 0.21.1, 0.22.0, 0.23.0, 0.23.1, 0.23.2, 0.23.3,
0.23.4, 0.24.0, 0.24.1, 0.24.2, 0.25.0, 0.25.1, 0.25.2, 0.25.3, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5)
No matching distribution found for pandas==1.2.3

I did successfully install pandas 1.0.0, I was hoping that would then allow the openai install to progress, but alas no, it seems like pandas 1.2.3 is a requirement.

Any tips on how to successfully get openai to install on pythonanywhere with the requirement of pandas 1.2.3 via pip?

Any help appreciated, I’m pretty stuck! Cheers Dale

1 Like

After upgrading some more base level things on the server I successfully installed openai.

Just upgrade your pip module by command python3 -m pip install --upgrade pip, then it should be works.

3 Likes

Thank you so much bro. This worked for me. I upgraded using "python3 -m pip install --upgrade pip " as you said then, “pip install openai” all in the home directory and worked thank you.