Download src/utils/computerUse/pipInstall.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/3aea50af8b8df3f7d61484532efafcf2f4da86cd/src/utils/computerUse/pipInstall.ts
- Command line
-
hf download hf://chenbhao/codev@3aea50af8b8df3f7d61484532efafcf2f4da86cd/src/utils/computerUse/pipInstall.ts
-
curl -L -o pipInstall.ts https://huggingface.co/chenbhao/codev/resolve/3aea50af8b8df3f7d61484532efafcf2f4da86cd/src/utils/computerUse/pipInstall.ts
279 Bytes
| const PIP_MIRROR_ARGS = [ | |
| '-i', | |
| 'https://pypi.tuna.tsinghua.edu.cn/simple/', | |
| '--trusted-host', | |
| 'pypi.tuna.tsinghua.edu.cn', | |
| ] | |
| export function buildPipInstallAttempts(baseArgs: string[]): string[][] { | |
| return [ | |
| [...baseArgs, ...PIP_MIRROR_ARGS], | |
| baseArgs, | |
| ] | |
| } | |