无双破军 2022-04-07 08:56 采纳率: 100%
浏览 2661
已结题

python3.10.2安装pyzmq19.0.2失败,问题出在哪里,请指导

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图

Collecting pyzmq==19.0.2
Downloading https://pypi.doubanio.com/packages/05/77/7483975d84fe1fd24cc67881ba7810e0e7b3ee6c2a0e002a5d6703cca49b/pyzmq-19.0.2.tar.gz (1.2 MB)
1.2/1.2 MB 4.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyzmq
Building wheel for pyzmq (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [248 lines of output]
C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py:1140: DeprecationWarning:
distutils Version classes are deprecated. Use packaging.version instead.
if V(Cython.version) < V(min_cython_version):
C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py:1148: DeprecationWarning:
distutils Version classes are deprecated. Use packaging.version instead.
if V(Cython.version__) >= V('0.29'):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\zmq
copying zmq\decorators.py -> build\lib.win-amd64-3.10\zmq
copying zmq\error.py -> build\lib.win-amd64-3.10\zmq
copying zmq_future.py -> build\lib.win-amd64-3.10\zmq
copying zmq_init_.py -> build\lib.win-amd64-3.10\zmq
creating build\lib.win-amd64-3.10\zmq\asyncio
copying zmq\asyncio__init
.py -> build\lib.win-amd64-3.10\zmq\asyncio
creating build\lib.win-amd64-3.10\zmq\auth
copying zmq\auth\base.py -> build\lib.win-amd64-3.10\zmq\auth
copying zmq\auth\certs.py -> build\lib.win-amd64-3.10\zmq\auth
copying zmq\auth\ioloop.py -> build\lib.win-amd64-3.10\zmq\auth
copying zmq\auth\thread.py -> build\lib.win-amd64-3.10\zmq\auth
copying zmq\auth_init.py -> build\lib.win-amd64-3.10\zmq\auth
creating build\lib.win-amd64-3.10\zmq\auth\asyncio
copying zmq\auth\asyncio_init
.py -> build\lib.win-amd64-3.10\zmq\auth\asyncio
creating build\lib.win-amd64-3.10\zmq\backend
copying zmq\backend\select.py -> build\lib.win-amd64-3.10\zmq\backend
copying zmq\backend_init.py -> build\lib.win-amd64-3.10\zmq\backend
creating build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\constants.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\context.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\devices.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\error.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\message.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\socket.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi\utils.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi_cffi.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi_poll.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi_init
.py -> build\lib.win-amd64-3.10\zmq\backend\cffi
creating build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython_init.py -> build\lib.win-amd64-3.10\zmq\backend\cython
creating build\lib.win-amd64-3.10\zmq\devices
copying zmq\devices\basedevice.py -> build\lib.win-amd64-3.10\zmq\devices
copying zmq\devices\monitoredqueue.py -> build\lib.win-amd64-3.10\zmq\devices
copying zmq\devices\monitoredqueuedevice.py -> build\lib.win-amd64-3.10\zmq\devices
copying zmq\devices\proxydevice.py -> build\lib.win-amd64-3.10\zmq\devices
copying zmq\devices\proxysteerabledevice.py -> build\lib.win-amd64-3.10\zmq\devices
copying zmq\devices_init
.py -> build\lib.win-amd64-3.10\zmq\devices
creating build\lib.win-amd64-3.10\zmq\eventloop
copying zmq\eventloop\future.py -> build\lib.win-amd64-3.10\zmq\eventloop
copying zmq\eventloop\ioloop.py -> build\lib.win-amd64-3.10\zmq\eventloop
copying zmq\eventloop\zmqstream.py -> build\lib.win-amd64-3.10\zmq\eventloop
copying zmq\eventloop_deprecated.py -> build\lib.win-amd64-3.10\zmq\eventloop
copying zmq\eventloop_init.py -> build\lib.win-amd64-3.10\zmq\eventloop
creating build\lib.win-amd64-3.10\zmq\eventloop\minitornado
copying zmq\eventloop\minitornado\concurrent.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado
copying zmq\eventloop\minitornado\ioloop.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado
copying zmq\eventloop\minitornado\log.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado
copying zmq\eventloop\minitornado\stack_context.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado
copying zmq\eventloop\minitornado\util.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado
copying zmq\eventloop\minitornado_init
.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado
creating build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
copying zmq\eventloop\minitornado\platform\auto.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
copying zmq\eventloop\minitornado\platform\common.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
copying zmq\eventloop\minitornado\platform\interface.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
copying zmq\eventloop\minitornado\platform\posix.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
copying zmq\eventloop\minitornado\platform\windows.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
copying zmq\eventloop\minitornado\platform_init.py -> build\lib.win-amd64-3.10\zmq\eventloop\minitornado\platform
creating build\lib.win-amd64-3.10\zmq\green
copying zmq\green\core.py -> build\lib.win-amd64-3.10\zmq\green
copying zmq\green\device.py -> build\lib.win-amd64-3.10\zmq\green
copying zmq\green\poll.py -> build\lib.win-amd64-3.10\zmq\green
copying zmq\green_init
.py -> build\lib.win-amd64-3.10\zmq\green
creating build\lib.win-amd64-3.10\zmq\green\eventloop
copying zmq\green\eventloop\ioloop.py -> build\lib.win-amd64-3.10\zmq\green\eventloop
copying zmq\green\eventloop\zmqstream.py -> build\lib.win-amd64-3.10\zmq\green\eventloop
copying zmq\green\eventloop_init.py -> build\lib.win-amd64-3.10\zmq\green\eventloop
creating build\lib.win-amd64-3.10\zmq\log
copying zmq\log\handlers.py -> build\lib.win-amd64-3.10\zmq\log
copying zmq\log_init
.py -> build\lib.win-amd64-3.10\zmq\log
copying zmq\log_main.py -> build\lib.win-amd64-3.10\zmq\log
creating build\lib.win-amd64-3.10\zmq\ssh
copying zmq\ssh\forward.py -> build\lib.win-amd64-3.10\zmq\ssh
copying zmq\ssh\tunnel.py -> build\lib.win-amd64-3.10\zmq\ssh
copying zmq\ssh_init
.py -> build\lib.win-amd64-3.10\zmq\ssh
creating build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\attrsettr.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\constants.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\context.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\frame.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\poll.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\socket.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\stopwatch.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\tracker.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar\version.py -> build\lib.win-amd64-3.10\zmq\sugar
copying zmq\sugar_init.py -> build\lib.win-amd64-3.10\zmq\sugar
creating build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\conftest.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_auth.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_cffi_backend.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_constants.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_context.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_cython.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_decorators.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_device.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_draft.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_error.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_etc.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_future.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_imports.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_includes.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_ioloop.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_log.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_message.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_monitor.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_monqueue.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_multipart.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_pair.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_poll.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_proxy_steerable.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_pubsub.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_reqrep.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_retry_eintr.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_security.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_socket.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_ssh.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_version.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_win32_shim.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_z85.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests\test_zmqstream.py -> build\lib.win-amd64-3.10\zmq\tests
copying zmq\tests_init
.py -> build\lib.win-amd64-3.10\zmq\tests
creating build\lib.win-amd64-3.10\zmq\tests\asyncio
copying zmq\tests\asyncio\test_asyncio.py -> build\lib.win-amd64-3.10\zmq\tests\asyncio
copying zmq\tests\asyncio_test_asyncio.py -> build\lib.win-amd64-3.10\zmq\tests\asyncio
copying zmq\tests\asyncio_init.py -> build\lib.win-amd64-3.10\zmq\tests\asyncio
creating build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\constant_names.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\garbage.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\interop.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\jsonapi.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\monitor.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\sixcerpt.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\strtypes.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\win32.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\z85.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils_init
.py -> build\lib.win-amd64-3.10\zmq\utils
copying zmq_init.pxd -> build\lib.win-amd64-3.10\zmq
copying zmq\backend\cffi_cdefs.h -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cffi_verify.c -> build\lib.win-amd64-3.10\zmq\backend\cffi
copying zmq\backend\cython\checkrc.pxd -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython\context.pxd -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython\libzmq.pxd -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython\message.pxd -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython\socket.pxd -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython_init
.pxd -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython\constants.pxi -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\backend\cython\constant_enums.pxi -> build\lib.win-amd64-3.10\zmq\backend\cython
copying zmq\devices\monitoredqueue.pxd -> build\lib.win-amd64-3.10\zmq\devices
copying zmq\utils\buffers.pxd -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\getpid_compat.h -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\ipcmaxlen.h -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\mutex.h -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\pyversion_compat.h -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\zmq_compat.h -> build\lib.win-amd64-3.10\zmq\utils
copying zmq\utils\zmq_constants.h -> build\lib.win-amd64-3.10\zmq\utils
running build_ext
running configure
{'libraries': ['libzmq'], 'include_dirs': [], 'library_dirs': [], 'runtime_library_dirs': [], 'extra_link_args': []}
Warning: Couldn't find an acceptable libzmq on the system.

  If you expected pyzmq to link against an installed libzmq, please check to make sure:
 
      * You have a C compiler installed
      * A development version of Python is installed (including headers)
      * A development version of ZMQ >= 3.2 is installed (including headers)
      * If ZMQ is not in a default location, supply the argument --zmq=<path>
      * If you did recently install ZMQ to a default location,
        try rebuilding the ld cache with `sudo ldconfig`
        or specify zmq's location with `--zmq=/usr/local`
 
  You can skip all this detection/waiting nonsense if you know
  you want pyzmq to bundle libzmq as an extension by passing:
 
      `--zmq=bundled`
 
  I will now try to build libzmq as a Python extension
  unless you interrupt me (^C) in the next 10 seconds...
 
  ************************************************
 
  10...
   9...
   8...
   7...
   6...
   5...
   4...
   3...
   2...
   1...
  Using bundled libzmq
  already have bundled\zeromq
  staging platform.hpp from: C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\buildutils\include_win32
  Warning: Failed to get cc._vcruntime via private API, not bundling CRT
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py", line 1365, in <module>
      setup(**setup_args)
    File "D:\python\lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
      return run_commands(dist)
    File "D:\python\lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
      dist.run_commands()
    File "D:\python\lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
      self.run_command(cmd)
    File "D:\python\lib\site-packages\setuptools\dist.py", line 1214, in run_command
      super().run_command(command)
    File "D:\python\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "D:\python\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "D:\python\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "D:\python\lib\site-packages\setuptools\dist.py", line 1214, in run_command
      super().run_command(command)
    File "D:\python\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "D:\python\lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "D:\python\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "D:\python\lib\site-packages\setuptools\dist.py", line 1214, in run_command
      super().run_command(command)
    File "D:\python\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py", line 1207, in run
      self.distribution.run_command('configure')
    File "D:\python\lib\site-packages\setuptools\dist.py", line 1214, in run_command
      super().run_command(command)
    File "D:\python\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py", line 746, in run          self.fallback_on_bundled()
    File "C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py", line 697, in fallback_on_bundled
      return self.bundle_libzmq_extension()
    File "C:\Users\无双破军\AppData\Local\Temp\pip-install-xhbc6a8p\pyzmq_b46dc4bcc670426ab536792fce550d3b\setup.py", line 614, in bundle_libzmq_extension
      if cc._vcruntime_redist:
  ************************************************
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyzmq
Running setup.py clean for pyzmq
Failed to build pyzmq
Installing collected packages: pyzmq
Running setup.py install for pyzmq ... done
DEPRECATION: pyzmq was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
  • 写回答

1条回答 默认 最新

  • 烟台大林子 2022-04-07 11:07
    关注

    方法1. 可以下载包的安装包,cmd进入包路径(setup.py所在路径下),执行python setup.py install ;
    方法2. 升级pip版本,重新使用pip安装

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 4月15日
  • 已采纳回答 4月7日
  • 创建了问题 4月7日

悬赏问题

  • ¥60 不懂得怎么运行下载来的代码
  • ¥15 CST导出3D模型图为什么和软件显示不一样?
  • ¥15 加热反应炉PLC控制系统设计(相关搜索:梯形图)
  • ¥15 python 用Dorc包报错,我的写法和网上教的是一样的但是它显示无效参数,是什么问题
  • ¥15 经过滑动平均后的一维信号还原用什么结构好呢?
  • ¥15 指定IP电脑的访问设置
  • ¥30 matlab ode45 未发现警告,但是运行出错
  • ¥15 为什么devc++编译项目会失败啊
  • ¥15 vscode platformio
  • ¥15 代写uni代码,app唤醒