Skip to content

Forum in maintenance, we will back soon 🙂

Connecting Openai t...
 
Notifications
Clear all

Connecting Openai to Python

10 Posts
3 Users
2 Reactions
15 Views
(@nuno-lobato)
Posts: 5
Active Member Customer Registered
Topic starter
 

 Hi,

 

I have just started the course, I'm new Python and have been following your steps.

I'm trying to connect Openai to Python.

 

It shows this error, I downloaded the windows visual studio but it's a file of 20GB.

 

Is there a simpler way to connect Openai to Python without having to download the Windows building tools?

Now I have two visual studios, one like yours and one from Windows.

 

Thank you

 
Posted : 10/30/2023 7:43 am
Topic Tags
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

no need for visual studio (the big one) 

we are using VS code.

 
Posted : 10/30/2023 1:03 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@nuno-lobato the course gives you instructions for the tools you need. You can delete the large download if you wish. Here is what you are instructed to install: https://code.visualstudio.com/

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 10/30/2023 3:35 pm
(@nuno-lobato)
Posts: 5
Active Member Customer Registered
Topic starter
 

Thanks guys. How do I get the "Mricrosoft C++ Build Tools" for visual studio? Can you please check the screenshot and let me know what can I do to fix it?

 
Posted : 10/31/2023 12:19 am
(@nuno-lobato)
Posts: 5
Active Member Customer Registered
Topic starter
 

 

I followed the steps and these errors came up (please check screenshot)

 

This post was modified 1 year ago by Nuno Lobato
 
Posted : 10/31/2023 1:59 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@nuno-lobato the compiler executable is installed. It cannot find the common library files to build an object file. You either need to set an environment variable to your library location or install the development library for C++.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 10/31/2023 6:06 pm
(@nuno-lobato)
Posts: 5
Active Member Customer Registered
Topic starter
 

I've tried that. I think it has to do with Python latest version. 

 
Posted : 10/31/2023 7:15 pm
(@nuno-lobato)
Posts: 5
Active Member Customer Registered
Topic starter
 

Got it fixed. Downgraded my Python version to Python 3.11.

 

New people might face the issue. I had to read a few forums from people who tried to install openai recently.

 

Thank you. 

 
Posted : 10/31/2023 11:37 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@nuno-lobato I haven't used anything beyond 3.9.2 as my Linux Ubuntu hasn't approved anything else for distribution. While newer versions with their improvements might be good, one thing to watch out for is its usability in projects that haven't developed with the newest versions.

@Hasan, you should declare what version of Python you suggest to use.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 11/01/2023 2:01 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@ssadvisor I use the latest version without problems, I need to investigate this issue

 
Posted : 11/03/2023 3:25 pm
SSAdvisor reacted
Share:
[the_ad_group id="312"]