1. <legend id='b9QJ5'><style id='b9QJ5'><dir id='b9QJ5'><q id='b9QJ5'></q></dir></style></legend>

      <small id='b9QJ5'></small><noframes id='b9QJ5'>

      • <bdo id='b9QJ5'></bdo><ul id='b9QJ5'></ul>
      <i id='b9QJ5'><tr id='b9QJ5'><dt id='b9QJ5'><q id='b9QJ5'><span id='b9QJ5'><b id='b9QJ5'><form id='b9QJ5'><ins id='b9QJ5'></ins><ul id='b9QJ5'></ul><sub id='b9QJ5'></sub></form><legend id='b9QJ5'></legend><bdo id='b9QJ5'><pre id='b9QJ5'><center id='b9QJ5'></center></pre></bdo></b><th id='b9QJ5'></th></span></q></dt></tr></i><div id='b9QJ5'><tfoot id='b9QJ5'></tfoot><dl id='b9QJ5'><fieldset id='b9QJ5'></fieldset></dl></div>
      <tfoot id='b9QJ5'></tfoot>

      在Requirements.txt中包含.whl安装

      Include .whl installation in requirements.txt(在Requirements.txt中包含.whl安装)

        <tfoot id='R3epK'></tfoot>
          <i id='R3epK'><tr id='R3epK'><dt id='R3epK'><q id='R3epK'><span id='R3epK'><b id='R3epK'><form id='R3epK'><ins id='R3epK'></ins><ul id='R3epK'></ul><sub id='R3epK'></sub></form><legend id='R3epK'></legend><bdo id='R3epK'><pre id='R3epK'><center id='R3epK'></center></pre></bdo></b><th id='R3epK'></th></span></q></dt></tr></i><div id='R3epK'><tfoot id='R3epK'></tfoot><dl id='R3epK'><fieldset id='R3epK'></fieldset></dl></div>

            <tbody id='R3epK'></tbody>

          <small id='R3epK'></small><noframes id='R3epK'>

          • <bdo id='R3epK'></bdo><ul id='R3epK'></ul>

            <legend id='R3epK'><style id='R3epK'><dir id='R3epK'><q id='R3epK'></q></dir></style></legend>

                本文介绍了在Requirements.txt中包含.whl安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如何将其包含在requirements.txt文件中? 对于Linux:

                pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl 
                pip install torchvision
                

                对于MacOS:

                pip install http://download.pytorch.org/whl/torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl 
                pip install torchvision 
                

                推荐答案

                可以使用environment markers:

                http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl ; sys_platform == "linux"
                http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl ; sys_platform == "linux2"
                http://download.pytorch.org/whl/torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl ; sys_platform == "darwin"
                torchvision
                

                (双Linux条目:linux2对于Python 2,linux对于Python 3。)

                这篇关于在Requirements.txt中包含.whl安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                GUI Freezes while downloading PyQt5 and Pytube(GUI在下载PyQt5和Pytube时冻结)
                How to solve memory issues while multiprocessing using Pool.map()?(如何解决使用Pool.map()进行多处理时的内存问题?)
                Python - How to use FastAPI and uvicorn.run without blocking the thread?(Python-如何使用FastAPI和uvicorn.run而不阻塞线程?)
                How to increment a shared counter from multiple processes?(如何从多个进程递增共享计数器?)
                Using pika, how to connect to rabbitmq running in docker, started with docker-compose with external network?(使用pika,如何连接运行在docker中的rabbitmq,从docker开始-与外部网络连接?)
                How to use .rolling() on each row of a Pandas dataframe?(如何对 pandas 数据帧的每一行使用.roll()?)
                • <i id='sotFn'><tr id='sotFn'><dt id='sotFn'><q id='sotFn'><span id='sotFn'><b id='sotFn'><form id='sotFn'><ins id='sotFn'></ins><ul id='sotFn'></ul><sub id='sotFn'></sub></form><legend id='sotFn'></legend><bdo id='sotFn'><pre id='sotFn'><center id='sotFn'></center></pre></bdo></b><th id='sotFn'></th></span></q></dt></tr></i><div id='sotFn'><tfoot id='sotFn'></tfoot><dl id='sotFn'><fieldset id='sotFn'></fieldset></dl></div>
                    <tbody id='sotFn'></tbody>
                • <small id='sotFn'></small><noframes id='sotFn'>

                    <bdo id='sotFn'></bdo><ul id='sotFn'></ul>
                          <legend id='sotFn'><style id='sotFn'><dir id='sotFn'><q id='sotFn'></q></dir></style></legend>
                          <tfoot id='sotFn'></tfoot>