擅长:python、mysql、java
<p>我想添加一个附加问题:如果在使用PIP install syft==0.2.9时发现以下问题</p>
<blockquote>
<p>Could not find a version that satisfies the requirement torch~=1.4.0 (from syft) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)</p>
</blockquote>
<p>您可以参考以下方法来解决:</p>
<p><code>pip install syft -f https://download.pytorch.org/whl/torch_stable.html</code></p>
<p>原因:</p>
<ol>
<li><p>并非所有PyTorch版本都可以在Python的包注册表PyPI上使用</p>
</li>
<li><p>-f:添加自定义注册表</p>
<blockquote>
<p><code>-f, find-links <url></code></p>
<p>If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local path or file:// URL that’s a directory, then look for archives in the directory listing. Links to VCS project URLs are not supported.</p>
</blockquote>
</li>
<li><p>请参阅此<a href="https://stackoverflow.com/questions/61850455/could-not-find-a-version-that-satisfies-the-requirement-torch-1-4-0-from-syft">link</a></p>
</li>
</ol>