在Python 3.7上安装Python.net时出错

在Python 3.7上安装Python.net时出错,python,.net,installation,python-3.7,python.net,Python,.net,Installation,Python 3.7,Python.net,我试图让Python.net(pythonnet)在Python 3.7上运行,当运行setup.py时,它失败了,出现以下错误。我假设它与路径行中缺少的条目有关,但我无法确定对它的任何引用。它基本上是在Windows7上简单地安装了Python3.7。pip安装也会失败,并产生相同的结果。有人对丢失的路径或文件有什么建议吗 PS C:\Users\user\pythonnet-master\pythonnet-master> python setup.py bdist_wheel run

我试图让Python.net(pythonnet)在Python 3.7上运行,当运行setup.py时,它失败了,出现以下错误。我假设它与路径行中缺少的条目有关,但我无法确定对它的任何引用。它基本上是在Windows7上简单地安装了Python3.7。pip安装也会失败,并产生相同的结果。有人对丢失的路径或文件有什么建议吗

PS C:\Users\user\pythonnet-master\pythonnet-master> python setup.py bdist_wheel
running bdist_wheel
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 4.6.2.
NuGet.exe is up to date.
MSBuild auto-detection: using msbuild version '15.5.180.51428' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017
\Professional\MSBuild\15.0\bin'.
All packages listed in packages.config are already installed.
Traceback (most recent call last):
  File "tools\geninterop\geninterop.py", line 292, in <module>
    sys.exit(main())
  File "tools\geninterop\geninterop.py", line 272, in main
    python_h = preprocess_python_headers()
  File "tools\geninterop\geninterop.py", line 192, in preprocess_python_headers
    for line in _check_output(cmd).splitlines():
  File "tools\geninterop\geninterop.py", line 41, in _check_output
    output = subprocess.check_output(*args, **kwargs)
  File "C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 376, in check_output
    **kwargs).stdout
  File "C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 453, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1155, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
PS C:\Users\user\pythonnet master\pythonnet master>python setup.py bdist\u
运转的车轮
运行构建
运行build_ext
正在检查来自的更新https://www.nuget.org/api/v2/.
当前正在运行NuGet.exe 4.6.2。
NuGet.exe是最新的。
MSBuild自动检测:使用“C:\Program Files(x86)\Microsoft Visual Studio\2017”中的MSBuild版本“15.5.180.51428”
\Professional\MSBuild\15.0\bin'。
packages.config中列出的所有软件包都已安装。
回溯(最近一次呼叫最后一次):
文件“tools\geninterop\geninterop.py”,第292行,在
sys.exit(main())
文件“tools\geninterop\geninterop.py”,第272行,在main中
python_h=预处理_python_头()
文件“tools\geninterop\geninterop.py”,第192行,在preprocess\u python\u头中
对于行输入检查输出(cmd).splitlines():
文件“tools\geninterop\geninterop.py”,第41行,在检查输出中
输出=子流程。检查输出(*args,**kwargs)
文件“C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py”,第376行,在check\u输出中
**kwargs)stdout
文件“C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py”,第453行,正在运行
使用Popen(*popenargs,**kwargs)作为流程:
文件“C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py”,第756行,在uu init中__
恢复信号,启动新会话)
文件“C:\Users\i102604\AppData\Local\Programs\Python\Python37\lib\subprocess.py”,第1155行,在执行子进程中
startupinfo)
FileNotFoundError:[WinError 2]系统找不到指定的文件

这方面还有一个悬而未决的问题:谢谢。当我第一次从master branch查看.install时,我没有看到它-现在这个问题已经解决了,只是想知道,在安装Python.net之前是否需要先安装CPython?