pythonnet安装失败_安装时出错Python.net在Python3.7上

我正试图Python.net(pythonnet)在python3.7上运行设置.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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值