在Ubuntu 18.04上安装pythonnet-nuget.exe问题

问题描述

我尝试在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的。有人知道如何解决这个问题吗?

谢谢!

解决方法

我遇到了同样的问题,需要先安装单声道:

sudo apt-get install mono-complete