error in line 16 role_playing.py #133
-
i have this error camel\examples\ai_society\role_playing.py", line 16, in An idea |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Hello @Devdevdevdev, I noticed that you're encountering an issue with the camel module not being found. To ensure a smooth setup, we have outlined the steps for environment setup in our repository. If you haven't already, could you please follow the instructions provided in the Environment Setup section of our README? After following these steps, Python should be able to locate the camel module without any problems. If you have followed these steps and are still encountering issues, please let us know so that we can assist you further. |
Beta Was this translation helpful? Give feedback.
-
create a conda virtual environmentconda create --name camel python=3.10 this command doesn't work, i don't know how to create a conda virtual environment |
Beta Was this translation helpful? Give feedback.
-
yes i use powershell :\AI\camel\camel> $env:OPENAI_API_KEY =myapikeynumber
|
Beta Was this translation helpful? Give feedback.
It seems there was a small syntax error. When setting the API key in PowerShell, you need to enclose the key in quotes. Here's the corrected command:
Replace
myapikeynumber
with your actual OpenAI API key.After setting the API key this way, you can confirm that it's set correctly by running:
echo $env:OPENAI_API_KEY
This should display your API key in the console.