#๐Ÿ”’ import openai not working on my IDE. Send help

25 messages ยท Page 1 of 1 (latest)

sharp totem
#

I did install pip install openai. What can I do now

glacial rockBOT
#

@sharp totem

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sharp totem
#

Like its there but its not working, what can i do

oblique tapir
sharp totem
#

@oblique tapir

oblique tapir
#

You installed the library into the wrong environment. You need to activate the environment, and then run pip.

#

I've never used whatever created ".pyenv" though, so I'm not sure how you do that with your setup.

sharp totem
#

Okay let me try that real quick.

#

It says I already have it installed globally

oblique tapir
#

VSCode is trying to use an installation in a .pyenv directory, while you installed openai into an installation in the appdata

sharp totem
#

is there a way i can just remove .pyenv

oblique tapir
#

From a quick search, pyenv seems to be for allowing you to manage having multiple versions of Python installed.

#

It's probably best to leave it if you plan on switching between versions.

sharp totem
#

I dont as of any future plans, I want to stick to 3.9.13

oblique tapir
#

I don't think I can help here. You might need to wait until someone who uses PyEnv sees this

sharp totem
#

Okay no issuess, thank you for trying

#

โค๏ธ

#

I nuked the pyenv, got it erased from the whole pc. It works fine now. Thank you so much

oblique tapir
#

Glad you got it working.

#

If you're done with the thread, you can !close it.

sharp totem
#

!close

glacial rockBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.