Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\dist.py”,第985行,在run_命令中 cmd_obj.run() 文件“c:\user_Python - Fatal编程技术网

文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\dist.py”,第985行,在run_命令中 cmd_obj.run() 文件“c:\user

文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\dist.py”,第985行,在run_命令中 cmd_obj.run() 文件“c:\user,python,Python,文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\dist.py”,第985行,在run_命令中 cmd_obj.run() 文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\command\build_ext.py”,第340行,运行中 self.build_扩展() 文件“c

文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\dist.py”,第985行,在run_命令中 cmd_obj.run() 文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\command\build_ext.py”,第340行,运行中 self.build_扩展() 文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\command\build\u ext.py”,第449行,内置扩展 self.\u build\u extensions\u serial() 文件“c:\users\administrator\appdata\local\programs\python\python38\lib\dist utils\command\build\u ext.py”,第474行,在“build\u extensions\u serial”中 自构建扩展(ext) 文件“C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pythonn et\setup.py”,第298行,内置扩展 子进程检查\u调用([sys.executable,geninterop,interop\u文件]) 文件“c:\users\administrator\appdata\local\programs\python\python38\lib\subp 检查调用中的第364行“process.py” 引发被调用的进程错误(retcode,cmd) subprocess.CalledProcessError:命令“['c:\\users\\administrator\\appdata\\l” ocal\\programs\\python\\python38\\python.exe','tools\\geninterop\\geninterop.py “,”src\\runtime\\interop38.cs']”返回非零退出状态1。 ---------------------------------------- 错误:为pythonnet构建控制盘失败 为pythonnet运行setup.py clean 无法生成pythonnet 安装收集的软件包:pythonnet、pywebview 正在为pythonnet运行setup.py安装。。。错误 错误:命令出错,退出状态为1: 命令:“c:\users\administrator\appdata\local\programs\python\python38\pyt hon.exe'-u-c'导入系统、设置工具、标记化;sys.argv[0]=“C:\\Users\\ 管理员\\AppData\\Local\\Temp\\pip-install-zk_1zc1m\\pythonnet\\setup.py'' '"'; __文件C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-z k_1zc1m\\pythonnet\\setup.py'';f=getattr(标记化,“‘打开’”,打开)(\uu fi) 乐ÈÈ;code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();执行(编译) (代码,“'exec'”)“安装--记录'C:\Users\Administrator\AppD ata\Local\Temp\pip-record-49gndty7\install record.txt'--单一版本外部 不可靠地管理--编译 cwd:C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pyt 喇叭\ 完整输出(6行): 用法:setup.py[global\u opts]cmd1[cmd1\u opts][cmd2[cmd2\u opts]…] 或:setup.py--帮助[cmd1 cmd2…] 或:setup.py--帮助命令 或者:setup.py cmd--帮助 错误:选项--无法识别外部管理的单一版本 ---------------------------------------- 错误:命令出错,退出状态为1:'c:\users\administrator\appdata\l ocal\programs\python\python38\python.exe'-u-c'导入系统、setuptools、tokeniz Esys.argv[0]=“C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip instal l-zk_1zc1m\\pythonnet\\setup.py''__文件C:\\Users\\Administrator\\Ap pData\\Local\\Temp\\pip-install-zk_1zc1m\\pythonnet\\setup.py'';f=getattr(tok enize,“,”打开“,”打开)(_u文件);code=f.read().replace(''\r\n'''','' “'\n''”;f、 close();exec(编译(代码,文件),exec),安装 C:\Users\Administrator\AppData\Local\Temp\pip-record-49gndty7\install reco rd.txt'--外部管理的单一版本--编译-检查日志以获取完整的co mmand输出。 C:\Users\Administrator\Desktop\pythonnet master>pip安装git+https://github.c om/pythonnet/pythonnet-U——原力 集水罐+https://github.com/pythonnet/pythonnet 克隆https://github.com/pythonnet/pythonnet 发送至c:\users\administrator\appda ta\local\temp\pip-req-build-xv3kuwk0 运行git clone-q命令https://github.com/pythonnet/pythonnet 'C:\用户\ 管理员\AppData\Local\Temp\pip-req-build-xv3kuwk0' 错误:错误[WinError 2]执行时系统找不到指定的文件 uting命令git clone-qhttps://github.com/pythonnet/pythonnet 'C:\Users\Admi nistrator\AppData\Local\Temp\pip-req-build-xv3kuwk0' 错误:找不到命令“git”-您的路径中是否安装了“git”?
找不到命令“git”-您的路径中是否安装了“git”?
。是否安装了git?否不是通过
pip
。我正在安装它,但它不会发生任何错误(我使用的是
python3.8
Collecting pywebview
  Using cached https://files.pythonhosted.org/packages/06/7f/2e064c00eb247486a67
0510e6eb42553858638043cd40ee96ad7f05cb7c9/pywebview-3.0.2-py3-none-any.whl
Collecting pythonnet; sys_platform == "win32"
  Using cached https://files.pythonhosted.org/packages/4a/0a/5964a5a1fdf207fab8e
718edd1f8d3578e0681577fe9abe0d9006f9718c2/pythonnet-2.4.0.tar.gz
Building wheels for collected packages: pythonnet
  Building wheel for pythonnet (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\administrator\appdata\local\programs\python\python38\pytho
n.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ad
ministrator\\AppData\\Local\\Temp\\pip-install-zk_1zc1m\\pythonnet\\setup.py'"'"
'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-zk_
1zc1m\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file
__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(c
ode, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Administrator\AppData\
Local\Temp\pip-wheel-shkamg1f' --python-tag cp38
       cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pytho
nnet\
  Complete output (83 lines):
  running bdist_wheel
  running build
  running build_ext
  Checking for updates from https://www.nuget.org/api/v2/.
  Currently running NuGet.exe 4.1.0.
  Updating NuGet.exe to 5.3.1.
  Update successful.
  Cannot find the specified version of msbuild: '14'
  MSBuild auto-detection: using msbuild version '4.0' from 'C:\Windows\Microsoft
.NET\Framework64\v4.0.30319'.
  Restoring NuGet package NUnit.3.7.1.
  Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
  Adding package 'NUnit.3.7.1' to folder 'C:\Users\Administrator\AppData\Local\T
emp\pip-install-zk_1zc1m\pythonnet\packages'
  Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\Administrator\A
ppData\Local\Temp\pip-install-zk_1zc1m\pythonnet\packages'
  Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\Administrator\Ap
pData\Local\Temp\pip-install-zk_1zc1m\pythonnet\packages'
  Restoring NuGet package UnmanagedExports.1.2.7.
  Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Administrator\AppD
ata\Local\Temp\pip-install-zk_1zc1m\pythonnet\packages'
  Added package 'NUnit.3.7.1' to folder 'C:\Users\Administrator\AppData\Local\Te
mp\pip-install-zk_1zc1m\pythonnet\packages'
  Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Administrator\AppDa
ta\Local\Temp\pip-install-zk_1zc1m\pythonnet\packages'

  NuGet Config files used:
      C:\Users\Administrator\AppData\Roaming\NuGet\NuGet.Config

  Feeds used:
      C:\Users\Administrator\.nuget\packages\
      https://api.nuget.org/v3/index.json

  Installed:
      3 package(s) to packages.config projects
  Traceback (most recent call last):
    File "tools\geninterop\geninterop.py", line 293, in <module>
      sys.exit(main())
    File "tools\geninterop\geninterop.py", line 273, in main
      python_h = preprocess_python_headers()
    File "tools\geninterop\geninterop.py", line 193, in preprocess_python_header
s
      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\administrator\appdata\local\programs\python\python38\lib\subp
rocess.py", line 411, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\subp
rocess.py", line 489, in run
      with Popen(*popenargs, **kwargs) as process:
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\subp
rocess.py", line 854, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\subp
rocess.py", line 1307, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  FileNotFoundError: [WinError 2] The system cannot find the file specified
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pythonn
et\setup.py", line 623, in <module>
      setup(
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\site
-packages\setuptools\__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\core.py", line 148, in setup
      dist.run_commands()
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pythonn
et\setup.py", line 610, in run
      return bdist_wheel.bdist_wheel.run(self)
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\site
-packages\wheel\bdist_wheel.py", line 192, in run
      self.run_command('build')
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\command\build_ext.py", line 340, in run
      self.build_extensions()
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\command\build_ext.py", line 449, in build_extensions
      self._build_extensions_serial()
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\dist
utils\command\build_ext.py", line 474, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pythonn
et\setup.py", line 298, in build_extension
      subprocess.check_call([sys.executable, geninterop, interop_file])
    File "c:\users\administrator\appdata\local\programs\python\python38\lib\subp
rocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['c:\\users\\administrator\\appdata\\l
ocal\\programs\\python\\python38\\python.exe', 'tools\\geninterop\\geninterop.py
', 'src\\runtime\\interop38.cs']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pythonnet
  Running setup.py clean for pythonnet
Failed to build pythonnet
Installing collected packages: pythonnet, pywebview
    Running setup.py install for pythonnet ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\administrator\appdata\local\programs\python\python38\pyt
hon.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\
Administrator\\AppData\\Local\\Temp\\pip-install-zk_1zc1m\\pythonnet\\setup.py'"
'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-z
k_1zc1m\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__fi
le__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile
(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppD
ata\Local\Temp\pip-record-49gndty7\install-record.txt' --single-version-external
ly-managed --compile
         cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-zk_1zc1m\pyt
honnet\
    Complete output (6 lines):
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help

    error: option --single-version-externally-managed not recognized
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\administrator\appdata\l
ocal\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokeniz
e; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-instal
l-zk_1zc1m\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\Ap
pData\\Local\\Temp\\pip-install-zk_1zc1m\\pythonnet\\setup.py'"'"';f=getattr(tok
enize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'
"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --re
cord 'C:\Users\Administrator\AppData\Local\Temp\pip-record-49gndty7\install-reco
rd.txt' --single-version-externally-managed --compile Check the logs for full co
mmand output.

C:\Users\Administrator\Desktop\pythonnet-master>pip install git+https://github.c
om/pythonnet/pythonnet -U --force
Collecting git+https://github.com/pythonnet/pythonnet
  Cloning https://github.com/pythonnet/pythonnet to c:\users\administrator\appda
ta\local\temp\pip-req-build-xv3kuwk0
  Running command git clone -q https://github.com/pythonnet/pythonnet 'C:\Users\
Administrator\AppData\Local\Temp\pip-req-build-xv3kuwk0'
  ERROR: Error [WinError 2] The system cannot find the file specified while exec
uting command git clone -q https://github.com/pythonnet/pythonnet 'C:\Users\Admi
nistrator\AppData\Local\Temp\pip-req-build-xv3kuwk0'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?