【发布时间】:2020-10-09 06:41:13
【问题描述】:
我尝试在 linux 上安装 pythonnet 库,但我在使用 nuget/mono 时会遇到问题。
我尝试运行以下命令 (Install pythonnet on Ubuntu 18.04, Python 3.6.7 64-bit, Mono 5.16 fails):
sudo apt update
sudo apt-get install clang
sudo apt install nuget
git config --global http.proxy http://my.proxy.address:port
/usr/bin/python3 -m pip install -U pycparser --user
/usr/bin/python3 -m pip install -U pythonnet --user
但是,这会导致以下错误:
mono tools/nuget/nuget.exe update -self' returned non-zero exit status 1.
当我从 github 克隆存储库并运行 mono tools/nuget/nuget.exe update -self 时,我收到以下错误:
Checking for updates from https://www.nuget.org/api/v2/. Invalid URI: Invalid port specified.
我遇到了这个链接:https://github.com/NuGet/Home/issues/2880,但大多数建议都以 Windows 为重点。有谁知道如何解决这个问题?
谢谢!
【问题讨论】:
-
您解决了这个问题吗?
标签: linux mono nuget python.net