‘pip‘ is not recognized as an internal or external command

问题:在window10环境中,想要安装openai,命令行中输入pip install openai,显示报错:'pip' is not recognized as an internal or external command

解决方法:在命令行进入Python安装目录下找到Scripts文件夹(\Python\Python311\Scripts)再运行pip install openai就可以了

你可能感兴趣的:(Python,Windows,pip,python,pycharm)