【问题标题】:Installation of pythonnet on Ubuntu 18.04 - problems with nuget.exe在 Ubuntu 18.04 上安装 pythonnet - nuget.exe 的问题
【发布时间】: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


【解决方案1】:

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

sudo apt-get install mono-complete

【讨论】:

  • 是的,我解决了。另外让我遇到麻烦的是,该映像是使用 Debian 9 构建的,而我的系统是 ubuntu 18.04
  • 就我而言,clang 也是必需的。以及 System.TupleValue 包的 nuget。
猜你喜欢
  • 2019-07-30
  • 2019-05-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-06-26
  • 2019-11-11
  • 2019-02-16
  • 1970-01-01
相关资源
最近更新 更多