mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-30 00:41:29 +08:00
更新 d1_python环境配置.md
This commit is contained in:
1 parent
8a855c3736
commit
cae5706aa1
1 file changed
+16
-1
+16
-1
@@ -11,6 +11,21 @@ pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
|
||||
```
|
||||
|
||||
## venv创建虚拟环境
|
||||
```bash
|
||||
python3 -m venv .venv
|
||||
```
|
||||
|
||||
## 激活虚拟环境
|
||||
source .venv/bin/activate
|
||||
```bash
|
||||
source .venv/bin/activate
|
||||
```
|
||||
|
||||
## 启动项目
|
||||
# 将当前目录为项目
|
||||
```bash
|
||||
export PYTHONPATH=/PathToDir:$PYTHONPATH
|
||||
```
|
||||
# 启动main.py
|
||||
```bash
|
||||
python main.py
|
||||
```
|
||||
Reference in new issue
Block a user