Git Product home page Git Product logo

ai-develop's Introduction

title date type updated categories tags description cover
ai-dev
2023-12-17 07:45:02 -0800

一. 配置python环境

# 创建虚拟环境d
zrf@debian:~/git/ai-develop$ python3 -m venv ai-dev

# 激活环境
zrf@debian:~/git/ai-develop$ source ai-dev/bin/activate
(ai-dev) zrf@debian:~/git/ai-develop$ 

# 安装Python 库
(ai-dev) zrf@debian:~/git/ai-evelop$ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

二. 配置本地APIKEY

# 添加自己的APIKEY
(ai-dev) zrf@debian:~/git/ai-develop$ cat .env 
# Once you add your API key below, make sure to not share it with anyone! The API key should remain private.
OPENAI_API_KEY=abc123

# 如果你的KEY需要代理的话需要配置以下环境变量
OPENAI_API_BASE_URL=

# 配置环境变量
(ai-dev) zrf@debian:~/git/ai-develop$ source .env 

# 测试环境变量
(ai-dev) zrf@debian:~/git/ai-develop$ echo $OPENAI_API_KEY
abc123

ai-develop's People

Contributors

simple-tec avatar zzzzrf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.