pip install openai AttributeError: module ‘pexpect‘ has no attribute ‘TIMEOUT‘(in jupyter )

使用如下代码安装opanai模块报错

pip install openai 

改为以下代码即可:

import piplite
await piplite.install('openai')
import openai as openai

AttributeError: module 'pexpect' has no attribute 'TIMEOUT' while installing in Juypter notebook · Issue #725 · jupyterlite/jupyterlite · GitHub

你可能感兴趣的:(pip,jupyter,前端)