Python 环境配置与 PyTorch 安装记录

1. PyTorch 本地安装

安装指定版本(cp312)

pip install F:\Anaconda-old\torch121\torch-2.7.0+cu126-cp312-cp312-win_amd64.whl

手动下载安装(cp310,大小约 2.7 GB)

下载地址:

https://download.pytorch.org/whl/cu126/torch-2.7.1%2Bcu126-cp310-cp310-win_amd64.whl

安装命令:

pip install "G:\file\conda\torch-2.7.1+cu126-cp310-cp310-win_amd64.whl"

使用镜像源安装 PyTorch 全家桶

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

2. Conda 环境管理

移动 Anaconda 目录

move "D:\ProgramFiles\anaconda3" G:\ProgramFiles\anaconda3

清理 Conda 缓存

conda clean --tarballs   # 删除缓存的压缩包
conda clean --index-cache # 删除索引缓存

3. 项目依赖安装

pip install -r requirements.txt

4. 环境变量配置

设置 no_proxy(代理排除)

localhost,127.0.1,192.168.10.*

HuggingFace 镜像加速(PowerShell)

$env:HF_ENDPOINT = "https://hf-mirror.com"

5. FramePack 项目

项目地址:

https://github.com/lllyasviel/FramePack

6. 其他记录

项目
时间18:52
数值28.3, 13.4, 23.0, 20.8, 943

7. 描述(占位/备注)

The man dances energetically, leaping mid-air with fluid arm swings and quick footwork.

标签: none

添加新评论