无法在ubuntu 16.04上安装pythonnet

2024-06-26 07:32:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在我的ubuntu上安装pythonnet,但没有成功。 我尝试了以下几种方法:

  1. pip安装Python

2.pip安装git+https://github.com/pythonnet/pythonnet

还有别的办法吗

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ECL8qX/pythonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ECL8qX/pythonnet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-ECL8qX/pythonnet/pip-egg-info
     cwd: /tmp/pip-install-ECL8qX/pythonnet/
Complete output (5 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-ECL8qX/pythonnet/setup.py", line 18, in <module>
    from wheel import bdist_wheel
ImportError: No module named wheel
----------------------------------------

错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出


Tags: installpippyimportinfoeggsyssetup