将网址链接传递给pipenv

问题描述 投票:0回答:1

如何将URL链接传递给pipenv安装?

我正在尝试下载以下内容

pip3 install torch==1.3.1+cu92 torchvision==0.4.2+cu92 -f https://download.pytorch.org/whl/torch_stable.html

根据pip3文档-f为

如果是html文件的url或路径,则解析为归档的链接。如果本地路径或file://是目录的url,然后查找档案在目录列表中。

python pip pipenv
1个回答
0
投票

您需要指定特定的滚轮文件。

例如:

pipenv install https://download.pytorch.org/whl/cu92/torch-1.3.0%2Bcu92-cp27-cp27m-linux_x86_64.whl

堆积网址should be fine,但是这里的关键是指定您想要的特定安装的方向盘。您提供的链接有数十种可能的安装

© www.soinside.com 2019 - 2024. All rights reserved.