gpt4 book ai didi

anaconda - fatal error C1083 : Cannot open include file: 'sys/un.h' : No such file or directory

转载 作者:行者123 更新时间:2023-12-03 15:27:30 27 4
gpt4 key购买 nike

我在使用 Spyder 和 Anaconda 时遇到这些错误。我的 Python 脚本仅适用于 Anaconda 提示符,其他任何东西都不起作用。这是整个错误:

_cffi_ext.c
anaconda3\lib\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(266): fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory

Traceback (most recent call last):
File "C:\Users\harsh_c1pywie\anaconda3\Scripts\spyder-script.py", line 6, in <module>
from spyder.app.start import main
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\spyder\app\start.py", line 22, in <module>
import zmq
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\zmq\__init__.py", line 47, in <module>
from zmq import backend
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\harsh_c1pywie\anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.
我什至卸载并安装了 zmq,但错误仍然存​​在。

最佳答案

尝试

pip uninstall pyzmq 
pip install pyzmq

关于anaconda - fatal error C1083 : Cannot open include file: 'sys/un.h' : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61974616/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com