您的位置:首页 > 新闻 > 热点要闻 > AI大模型应用开发环境配置

AI大模型应用开发环境配置

2024/10/7 17:49:29 来源:https://blog.csdn.net/qq_25888559/article/details/141786645  浏览:    关键词:AI大模型应用开发环境配置

目录

一、工具下载

1、Python官网下载

2、Pycharm官网下载

3、Streamlit官网下载

二、升级PIP

(一)检查PIP版本

(二)在anaconda Prompt命令窗口输入

三、安装openai组件

四、安装streamlit组件

五、启动streamlit

六、安装langchain组件

七、安装jupyter notebook服务器


一、工具下载

1、Python官网下载

进入Python官网   Download Python | Python.org

2、Pycharm官网下载

PyCharm: the Python IDE for data science and web development

3、Streamlit官网下载

Install Streamlit - Streamlit Docs

二、升级PIP

(一)检查PIP版本

【11】conda install pip

(二)在anaconda Prompt命令窗口输入

...>python -m pip install --upgrade pip

直至安装成功:Successfully installed pip-24.0

三、安装openai组件

...>pip install openai

安装完成!

openai安装成功!

四、安装streamlit组件

1、windows OS :Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug  6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32

...>pip install streamlit

安装成功!

openai版本浏览:1.43.0

streamlit版本浏览:1.38.0

环境配置:Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug  6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32

pip                  24.2

openai            1.43.0

streamlit         1.38.0

langchain       0.2.15

langchain-openai          0.1.23

2、Pycharm:Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32

pip                    24.2

openai              1.43.0

streamlit          1.38.0

langchain        0.2.15

langchain-openai          0.1.23
3、Anaconda:Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]

IPython 7.6.1 -- An enhanced Interactive Python.

pip                     24.0

openai               1.39.0

streamlit            1.23.1

五、启动streamlit

...>streamlit hello

启动成功!

六、安装langchain组件

 ...>pip install langchain

 ...>pip install langchain_openai

安装成功!

七、安装jupyter notebook服务器

(一)在Pycharm中安装jupyter

...>pip install jupyter notebook

(二)启动jupyter notebook服务器

...>jupyter notebook

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com