Anaconda的界面创建open ai环境,选择python10
控制台
#或者 conda info -e 注意不是anaconda命令开头
(base) C:\Users\su>conda env list
# conda environments:
#
base * F:\anaconda3
openai F:\anaconda3\envs\openai
(base) C:\Users\su>conda activate openai
(openai) C:\Users\su>pip list
(openai) C:\Users\su>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple openai
参考 https://platform.openai.com/docs/quickstart/build-your-application
1. git clone https://github.com/openai/openai-quickstart-python.git
2.
cd openai-quickstart-python
cp .env.example .env #修改对应的APIKEY
3.
4.执行