-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install openai because "Failed building wheel for aiohttp" #645
Comments
This is happening because I'd recommend using Python 3.11 as 3.12 was only recently released and there almost definitely will be other libraries that don't support it yet as well. This is "fixed" in our v1 beta as we've moved away from aiohttp to httpx which is a pure python library and while they don't advertise 3.12 support yet, it is much more likely to work out of the box. |
i am facing the same error. still not clear to me how to solve it? |
@RobertCraigie so how to solve this? just by changing the version of python? |
@TechnoCatza how did you resolve this error? |
@usmantariq1240 yes that would work, your options are
|
thanks god |
Thank You for your help! it worked 😊 |
How do I downgrade from Python 3.12 to 3.11? |
Hi, How do I downgrade to Python 3.11 from 3.12 on a Mac? |
This depends entirely on your setup and unfortunately there are many different ways of configuring Python. Do you know how python is setup on your system? A side note, I'd personally recommend using Rye as it manages python versions for you and changing versions is as simple as
|
Downgrading your default python installation can often cause unexpected results. I would install python 3.11 separately and use it to create a virtual environment specific to your openai project. |
Probleb solved!!! I have unistall 3.12.0 version of python and install 3.11.0 Click here to install 3.11.0 This solved my problem and able to install openai now. |
|
Describe the bug
I yesterday freshly install Python, and now i want to install openai. The installation always fails at building the wheel for aiohttp. Im not a big programmer, so i dont know what is wrong here (I did remove my user name for this post)
To Reproduce
Expected: Succesfully Installing openai
Code snippets
OS
Windows 11
Python version
Python v3.12
Library version
Newest
The text was updated successfully, but these errors were encountered: