ERROR: No matching distribution found for dotnet
ERROR: No matching distribution found for dotnet
最初使用python 2.7
。
现在使用 python 3.9
.
打开现有文件出现此错误消息:
ERROR: Could not find a version that satisfies the requirement dotnet (from versions: none)
ERROR: No matching distribution found for dotnet
会产生此错误的基本代码:
import dotnet
print('dotnet is imported')
此处已尝试:
ERROR: Could not find a version that satisfies the requirement dotnet
上面的解决方案表明根据版本支持不支持 3.9
。
这里有一个包:https://pypi.org/project/pythonnet/但我还没有试过。
所以问题是,是否有其他方法可以实现相同的效果?
如果您查看 Github 上的 dotnet
PyPI page under "Download files", you'll see that they only have wheels for Python 2.7 and 3.6. There isn't even a link to a source code .zip
or .tar.gz
file. The module's BitBucket link is dead. I found this,但我没有尝试构建它,因为我没有安装 Visual Studio。 YMMV.
至于 pythonnet
is concerned, they currently only have wheels up to Python 3.8, even though the 3.0 development branch builds successfully on Appveyor with 3.9. You can try grabbing a wheel from here (temporary link, will be deleted after 1 month per Appveyor's policy)。我没有尝试过这条路,所以又是 YMMV。降级到 Python 3.8 始终是一种选择。
最后,您可以 open an issue 或找一个现有的来游说 3.9 轮发布。
最初使用python 2.7
。
现在使用 python 3.9
.
打开现有文件出现此错误消息:
ERROR: Could not find a version that satisfies the requirement dotnet (from versions: none)
ERROR: No matching distribution found for dotnet
会产生此错误的基本代码:
import dotnet
print('dotnet is imported')
此处已尝试: ERROR: Could not find a version that satisfies the requirement dotnet
上面的解决方案表明根据版本支持不支持 3.9
。
这里有一个包:https://pypi.org/project/pythonnet/但我还没有试过。
所以问题是,是否有其他方法可以实现相同的效果?
如果您查看 Github 上的 dotnet
PyPI page under "Download files", you'll see that they only have wheels for Python 2.7 and 3.6. There isn't even a link to a source code .zip
or .tar.gz
file. The module's BitBucket link is dead. I found this,但我没有尝试构建它,因为我没有安装 Visual Studio。 YMMV.
至于 pythonnet
is concerned, they currently only have wheels up to Python 3.8, even though the 3.0 development branch builds successfully on Appveyor with 3.9. You can try grabbing a wheel from here (temporary link, will be deleted after 1 month per Appveyor's policy)。我没有尝试过这条路,所以又是 YMMV。降级到 Python 3.8 始终是一种选择。
最后,您可以 open an issue 或找一个现有的来游说 3.9 轮发布。