Loading...
Loading...
Compare original and translation side by side
| Task | Command |
|---|---|
| Create venv | |
| Install package | |
| Install from requirements | |
| Run script | |
| Show installed | |
| 任务 | 命令 |
|---|---|
| 创建虚拟环境 | |
| 安装包 | |
| 从requirements文件安装 | |
| 运行脚本 | |
| 查看已安装包 | |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined[project]
name = "my-project"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = [
"httpx>=0.25",
"pydantic>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"ruff>=0.1",
][project]
name = "my-project"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = [
"httpx>=0.25",
"pydantic>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"ruff>=0.1",
]mkdir my-project && cd my-project
uv venvmkdir my-project && cd my-project
uv venvundefinedundefined| Issue | Solution |
|---|---|
| "No Python found" | |
| Wrong Python version | |
| Conflicting deps | |
| Cache issues | |
| 问题 | 解决方案 |
|---|---|
| "未找到Python" | |
| Python版本错误 | |
| 依赖冲突 | |
| 缓存问题 | |
./references/pyproject-patterns.md./references/dependency-management.md./references/publishing.md./references/pyproject-patterns.md./references/dependency-management.md./references/publishing.mdpython-typing-patternspython-pytest-patternspython-fastapi-patternspython-typing-patternspython-pytest-patternspython-fastapi-patterns