Sip standard list

From: http://www.packetizer.com/ipmc/sip/standards.html

SIP Standards

Core SIP Documents
RFCDocument Title
RFC 2543 SIP: Session Initiation Protocol (obsolete)
RFC 3261 SIP: Session Initiation Protocol
RFC 3262 Reliability of Provisional Responses
RFC 3263 Locating SIP Servers
RFC 3264 An Offer/Answer Model with the Session Description Protocol (SDP)
RFC 3265 SIP-Specific Event Notification

SDP-Related Documents
RFCDocument Title
RFC 2327 Session Description Protocol (SDP) (obsolete: see RFC 4566 )
RFC 3266 Support of IPv6 in SDP
RFC 3388 Grouping Media Lines in SDP
RFC 3407 Session Description Protocol (SDP) Simple Capability Declaration
RFC 3556 SDP Bandwidth Modifiers for RTCP Bandwidth
RFC 3605 Real Time Control Protocol (RTCP) attribute in Session Description Protocol (SDP)
RFC 3890 A Transport Independent Bandwidth Modifier
RFC 4091 An Alternative NAT Semantics for SDP
RFC 4145 TCP-Based Media Transport in the SDP
RFC 4566 Session Description Protocol (SDP)
RFC 4567 Key Management Extensions for SDP and RTSP
RFC 4568 SDP Security Descriptions for Media Streams
RFC 4570 SDP Source Filters
RFC 4572 Connection-Oriented Media Transport over TLS in SDP
RFC 4574 SDP Label Attribute
RFC 4756 FEC Grouping Semantics in SDP
RFC 5027 Security Preconditions for SDP
RFC 5432 QoS Mechanism Selection in SDP
RFC 5547 SDP Offer/Answer Mechanism to Enable File Transfer
RFC 5576 Source-Specific Media Attributes in SDP

RTP-Related Documents
RFCDocument Title
RFC 1889 RTP: Transport Protocol for Real-Time Applications (obsolete: see RFC 3550 )
RFC 1890 RTP Profile for Audio and Video Conferences with Minimal Control (obsolete: see RFC 3551 )
RFC 2198 RTP Payload for Redundant Audio Data
RFC 2733 An RTP Payload Format for Generic Forward Error Correction (obsolete: see RFC 5109 )
RFC 2793 RTP Payload for Text Conversation (obsolete: see RFC 4103 )
RFC 2833 RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals (obsolete: see RFC 4733 )
RFC 2959 Real-Time Transport Protocol Management Information Base
RFC 3389 RTP Payload for Comfort Noise
RFC 3611 RTP Control Protocol Extended Reports (RTCP XR)
RFC 3711 The Secure Real-time Transport Protocol (SRTP)
RFC 4103 RTP Payload for Text Conversation
RFC 4571 Framing RTP and RTCP Packets over Connection-Oriented Transport
RFC 4585 Extended RTP Profile for RTCP-Based Feedback (RTP/AVPF)
RFC 4586 RTP/AVPF: Results of the Timing Rule Simulations
RFC 4588 RTP Retransmission Payload Format
RFC 4771 Integrity Transform Carrying Roll-Over for SRTP
RFC 4733 RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals
RFC 4961 Symmetric RTP / RTP Control Protocol
RFC 3550 RTP: Transport Protocol for Real-Time Applications
RFC 3551 RTP Profile for Audio and Video Conferences with Minimal Control
RFC 5109 RTP Payload Format for Generic Forward Error Correction
RFC 5117 RTP Topologies
RFC 5450 Transmission Time Offsets in RTP Streams
RFC 5506 Support for Reduced-Size RTCP: Opportunities and Consequences

HTTP-Related Documents
RFCDocument Title
RFC 2616 Hypertext Transfer Protocol -- HTTP/1.1
RFC 2617 HTTP Authentication: Basic and Digest Access Authentication
RFC 3310 HTTP Digest Authentication Using Authentication and Key Agreement (AKA)

MIME-Related Documents
RFCDocument Title
RFC 1847 Security Multiparts for MIME: Multipart/Signed and Multipart/Encrypted
RFC 2045 MIME Part One: Format of Internet Message Bodies
RFC 2046 MIME Part Two: Media Types
RFC 2047 MIME Part Three: Message Header Extensions for Non-ASCII Text
RFC 2048 MIME Part Four: Registration Procedures (obsolete: see RFC 4288 and RFC 4289 )
RFC 2633 S/MIME Version 3 Message Specification
RFC 3204 MIME media types for ISUP and QSIG Objects
RFC 3420 Internet Media Type message/sipfrag
RFC 3555 MIME Type Registration of RTP Payload Formats
RFC 4288 Media Type Specifications and Registration Procedures
RFC 4289 Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures

SIP Standards Track Documents (Options, Extensions, etc.)
RFCDocument Title
RFC 2976 The SIP INFO Method
RFC 2848 Extensions for IP Access to Telephone Call Services
RFC 3050 CGI for SIP
RFC 3311 UPDATE Method
RFC 3312 Integration of Resource Management and SIP
RFC 3313 Private SIP Extensions for Media Authorization
RFC 3319 DHCPv6 Options for SIP Servers
RFC 3323 A Privacy Mechanism for SIP
RFC 3324 Short Term Requirements for Network Asserted Identity
RFC 3325 Private Extensions to SIP for Asserted Identity within Trusted Networks
RFC 3326 The Reason Header Field
RFC 3327 Extension Header Field for Registering Non-Adjacent Contacts
RFC 3329 Security Mechanism Agreement
RFC 3361 DHCP-for-IPv4 Option for SIP Servers
RFC 3372 SIP for Telephones (SIP-T): Context and Architectures
RFC 3398 ISUP to SIP Mapping
RFC 3428 SIP Extension for Instant Messaging
RFC 3455 Private Header Extensions for 3GPP
RFC 3515 The Session Initiation Protocol (SIP) Refer Method
RFC 3578 Mapping ISUP Overlapped Signalling to SIP
RFC 3581 Extension to SIP for Symmetric Response Routing
RFC 3608 Extension Header Field for Service Route Discovery During Registration
RFC 3680 SIP Event Package for Registrations
RFC 3840 Indicating User Agent Capabilities in SIP
RFC 3841 Caller Preferences for SIP
RFC 3842 Message Summary and Message Waiting Indication Event Package
RFC 3856 Presence Event Package
RFC 3857 A Watcher Information Event Template-Package
RFC 3891 "Replaces" Header
RFC 3892 Referred-By Mechanism
RFC 3893 SIP Authenticated Identity Body (AIB)
RFC 3911 SIP "Join" Header
RFC 3903 Event State Publication
RFC 3959 Early Session Disposition Type
RFC 3960 Early Media and Ringing Tone Generation
RFC 4028 Session Timers in the Session Initiation Protocol (SIP)
RFC 4235 An INVITE-Initiated Dialog Event Package for SIP
RFC 4244 Extension for Request History Information
RFC 4320 Actions Addressing Identified Issues with the SIP Non-INVITE Transaction
RFC 4411 Extending the SIP Reason Header for Preemption Events
RFC 4412 Communications Resource Priority for SIP
RFC 4474 Enhancements for Authenticated Identity Management in SIP
RFC 4483 A Mechanism for Content Indirection in SIP
RFC 4488 Suppression of SIP REFER Method Implicit Subscription
RFC 4575 SIP Event Package for Conference State
RFC 4662 SIP Event Notification Extension for Resource Lists
RFC 4730 Event Package for KPML
RFC 4780 MIB for SIP
RFC 4904 Representing Trunk Groups in tel/sip URIs
RFC 4916 Connected Identity in SIP
RFC 4967 Dial String Parameter for the SIP URI
RFC 4975 Message Session Relay Protocol (MSRP)
RFC 4976 Relay Extension for MSRP
RFC 5079 Rejecting Anonymous Requests in SIP
RFC 5196 SIP User Agent Capability Extension to Presence Information Data Format (PIDF)
RFC 5263 SIP Extension for Partial Notification of Presence Information
RFC 5264 Publication of Partial Presence Information
RFC 5373 Requesting Answering Modes for SIP
RFC 5478 IANA Registration of new SIP Resource-Priority Namespaces
RFC 5509 IANA Registration Instant Messaging and Presence DNS SRV RRs for SIP
RFC 5552 SIP Interface to VoiceXML Media Services
RFC 5589 SIP Call Control - Transfer
RFC 5627 Obtaining and Using Globally Routable User Agent URIs (GRUUs) in SIP
RFC 5628 Registration Event Package Extension for SIP GRUUs
RFC 5629 A Framework for Application Interaction in SIP
RFC 5630 The Use of the SIPS URI Scheme in SIP
RFC 5631 SIP Session Mobility
RFC 5658 Addressing Record-Route Issues in SIP

SIP Informational RFCs and BCP Documents
RFCDocument Title
RFC 3087 Control of Service Context using SIP Request-URI
RFC 3351 User Requirements for SIP in Support of Speech/Hearing Impaired
RFC 3603 Private SIP Proxy-to-Proxy Extensions for PacketCable Distributed Call Signaling
RFC 3665 SIP Basic Call Flow Examples
RFC 3702 Authentication, Authorization, and Accounting Requirements for SIP
RFC 3824 Using E.164 numbers with SIP
RFC 3968 IANA Registry for SIP Header Field
RFC 3969 IANA Registry for SIP URI
RFC 3976 Interworking SIP and IN Applications
RFC 4117 Transcoding Services Invocation using 3PCC
RFC 4123 SIP-H.323 Interworking Requirements
RFC 4168 SCTP as a transport for SIP
RFC 4189 Requirements for End-to-Middle Security for SIP
RFC 4240 Basic Network Media Services with SIP
RFC 4245 High-Level Requirements for Tightly Coupled SIP Conferencing
RFC 4317 SDP Offer/Answer Examples
RFC 4321 Problems Identified Associated with the SIP Non-INVITE Transaction
RFC 4353 A Framework for Conferencing with SIP
RFC 4354 SIP Event Package and Data Format for Push-to-Talk over Cellular (PoC) Service
RFC 4453 Requirements for Consent-Based Communications in the SIP
RFC 4457 SIP P-User-Database Private-Header (P-Header)
RFC 4458 SIP URIs for Applications such as Voicemail and Interactive Voice Response (IVR)
RFC 4475 SIP Torture Test Messages
RFC 4484 Trait-Based Authorization Requirements for SIP
RFC 4504 SIP Telephony Device Requirements and Configuration
RFC 4538 Request Authorization through Dialog Identification in SIP
RFC 4596 Guidelines for Usage of the SIP Caller Preferences Extension
RFC 4579 SIP Call Control - Conferencing for User Agents
RFC 4964 The P-Answer-State Header Extension to SIP
RFC 5002 SIP P-Profile-Key Private Header (P-Header)
RFC 5009 Private Header (P-Header) Extension to SIP for Authorization of Early Media
RFC 5039 SIP and Spam
RFC 5057 Multiple Dialog Usages in SIP
RFC 5118 SIP Torture Test Messages for IPv6
RFC 5194 Framework for Real-Time Text using SIP
RFC 5411 A Hitchhiker's Guide to SIP
RFC 5479 Requirements and Analysis of Media Security Management Protocols
RFC 5502 SIP P-Served-User Private-Header (P-Header) for the 3GPP Core Network

SIP-Related Documents
RFCDocument Title
RFC 3219 Telephony Routing over IP (TRIP) (tutorial )
RFC 3320 Signalling Compression
RFC 3321 Signalling Compression - Extended Operations
RFC 3322 Signalling Compression - Requirements and Assumptions
RFC 3486 Compressing the Session Initiation Protocol (SIP)
RFC 3485 SIP and SDP Static Dictionary for Signaling Compression
RFC 5503 Private SIP Proxy-to-Proxy Extensions for Supporting the PacketCable Distributed Call Signaling Architecture (obsolete, see RFC 5503 )
RFC 3725 Best Current Practices for 3PCC in SIP
RFC 3764 enumservice registration for SIP Addresses-of-Record
RFC 4077 A Negative Acknowledgement Mechanism for Signaling Compression
RFC 4083 3GPP Release 5 Requirements on SIP
RFC 4092 Using SDP Alternative NAT Semantics in SIP
RFC 4465 Signaling Compression (SigComp) Torture Tests
RFC 4497 Interworking between the SIP and QSIG
RFC 4740 Diameter SIP Application
RFC 5049 Applying Signaling Compression to SIP
RFC 5112 The Presence-Specific Static Dictionary for Signaling Compression
RFC 5115 TRIP attribute for Resource Priority
RFC 5503 Private SIP Proxy-to-Proxy Extensions for Supporting the PacketCable Distributed Call Signaling Architecture

Directory Services Documents
StandardDocument Title
H.350 Directory Services Architecture for Multimedia Conferencing
H.350.4 Directory Services Architecture for SIP
Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。 安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows (.venv) PS E:\PyCharmObject\emailSingUp\SignUp> python -m venv packaging_env (.venv) PS E:\PyCharmObject\emailSingUp\SignUp> packaging_env\Scripts\activate (packaging_env) PS E:\PyCharmObject\emailSingUp\SignUp> pyinstaller -F -w -i outlook.ico AccountRegisterApp.py 116 INFO: PyInstaller: 6.15.0, contrib hooks: 2025.8 116 INFO: Python: 3.9.13 131 INFO: Platform: Windows-10-10.0.26100-SP0 131 INFO: Python environment: E:\DEMO\python-demo\.venv 131 INFO: wrote E:\PyCharmObject\emailSingUp\SignUp\AccountRegisterApp.spec 131 INFO: Module search paths (PYTHONPATH): ['E:\\DEMO\\python-demo\\.venv\\Scripts\\pyinstaller.exe', 'E:\\Program Files\\Python3.9\\python39.zip', 'E:\\Program Files\\Python3.9\\DLLs', 'E:\\Program Files\\Python3.9\\lib', 'E:\\Program Files\\Python3.9', 'E:\\DEMO\\python-demo\\.venv', 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages', 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\setuptools\\_vendor', 'E:\\PyCharmObject\\emailSingUp\\SignUp'] 380 INFO: checking Analysis 401 INFO: Building because inputs changed 401 INFO: Running Analysis Analysis-00.toc 401 INFO: Target bytecode optimization level: 0 401 INFO: Initializing module dependency graph... 401 INFO: Initializing module graph hook caches... 413 INFO: Analyzing modules for base_library.zip ... 885 INFO: Processing standard module hook 'hook-heapq.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 981 INFO: Processing standard module hook 'hook-encodings.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 1572 INFO: Processing standard module hook 'hook-pickle.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 2079 INFO: Caching module dependency graph... 2098 INFO: Looking for Python shared library... 2106 INFO: Using Python shared library: E:\Program Files\Python3.9\python39.dll 2106 INFO: Analyzing E:\PyCharmObject\emailSingUp\SignUp\AccountRegisterApp.py 2106 INFO: Processing pre-find-module-path hook 'hook-tkinter.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path' 2106 INFO: TclTkInfo: initializing cached Tcl/Tk info... 2248 INFO: Processing standard module hook 'hook-_tkinter.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 2280 INFO: Processing standard module hook 'hook-pandas.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 3137 INFO: Processing standard module hook 'hook-_ctypes.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 3147 INFO: Processing standard module hook 'hook-platform.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 3162 INFO: Processing standard module hook 'hook-sysconfig.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 3172 INFO: Processing standard module hook 'hook-numpy.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 3984 INFO: Processing standard module hook 'hook-difflib.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 4064 INFO: Processing standard module hook 'hook-multiprocessing.util.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 4103 INFO: Processing standard module hook 'hook-xml.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 4731 INFO: Processing standard module hook 'hook-charset_normalizer.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks' 4775 INFO: Processing pre-safe-import-module hook 'hook-typing_extensions.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module' 4775 INFO: SetuptoolsInfo: initializing cached setuptools info... 7047 INFO: Processing standard module hook 'hook-pytz.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 8229 INFO: Processing standard module hook 'hook-pandas.io.formats.style.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 9298 INFO: Processing standard module hook 'hook-pandas.plotting.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 9580 INFO: Processing standard module hook 'hook-openpyxl.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks' 9713 INFO: Processing standard module hook 'hook-xml.etree.cElementTree.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 9948 INFO: Processing standard module hook 'hook-PIL.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 9998 INFO: Processing standard module hook 'hook-PIL.Image.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 10309 INFO: Processing standard module hook 'hook-PIL.ImageFilter.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 11031 INFO: Processing standard module hook 'hook-sqlite3.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 11265 INFO: Processing standard module hook 'hook-pandas.io.clipboard.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 11265 INFO: Processing standard module hook 'hook-qtpy.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 11334 WARNING: QtLibraryInfo(PyQt5): failed to obtain Qt library info: Child process call to _read_qt_library_info() failed with: File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\qt\__init__.py", line 198, in _read_qt_library_info QtCore = importlib.import_module('.QtCore', package) File "E:\Program Files\Python3.9\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 666, in _load_unlocked File "<frozen importlib._bootstrap>", line 565, in module_from_spec File "<frozen importlib._bootstrap_external>", line 1173, in create_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed ImportError: DLL load failed while importing QtCore: 找不到指定的程序。 A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\qt\__init__.py", line 198, in _read_qt_library_info QtCore = importlib.import_module('.QtCore', package) File "E:\Program Files\Python3.9\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * 11562 INFO: hook-qtpy: selected 'PySide2' as the only available Qt bindings. 11563 INFO: Processing pre-safe-import-module hook 'hook-packaging.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module' 11571 INFO: Processing standard module hook 'hook-PySide2.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 11614 INFO: Processing standard module hook 'hook-PySide2.QtNetwork.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute loader = importlib.util.find_spec(package).loader File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\qt\__init__.py", line 670, in _check_if_openssl_enabled QtCore = importlib.import_module('.QtCore', package) File "E:\Program Files\Python3.9\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * 12364 INFO: Processing standard module hook 'hook-PySide2.QtCore.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute loader = importlib.util.find_spec(package).loader File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * 12580 INFO: Processing standard module hook 'hook-PySide2.QtDataVisualization.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute loader = importlib.util.find_spec(package).loader File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * 13096 INFO: Processing standard module hook 'hook-PySide2.QtGui.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute loader = importlib.util.find_spec(package).loader File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * 13798 INFO: Processing standard module hook 'hook-PySide2.QtWidgets.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module> while run_next_command(read_fh, write_fh): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command output = function(*args, **kwargs) File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute loader = importlib.util.find_spec(package).loader File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * 14131 INFO: Processing standard module hook 'hook-dateutil.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks' 14198 INFO: Processing pre-safe-import-module hook 'hook-six.moves.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module' 14331 INFO: Processing standard module hook 'hook-xml.dom.domreg.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' 14713 INFO: Processing standard module hook 'hook-PyQt5.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks' ERROR: Aborting build process due to attempt to collect multiple Qt bindings packages: attempting to run hook for 'PyQt5', while hook for 'PySide2' has already been run! PyInstaller does not support multiple Qt bindings packages in a frozen application - either ensure that the build environment has only one Qt bindings package installed, or exclude the extraneous bindings packages via the module exclusion mechanism (--exclude command-line option, or excludes list in the spec file). (packaging_env) PS E:\PyCharmObject\emailSingUp\SignUp> 打包后没有生成exe程序
最新发布
09-06
<think> 我们参考用户提供的引用信息,并结合PyInstaller打包的常见问题来解决当前遇到的三个主要错误: 1. ImportError: DLL load failed while importing QtCore 2. NumPy 1.x与2.0.2版本不兼容 3. attempt to collect multiple Qt bindings packages 根据引用[3]的信息,当PyQt5插件路径未被正确识别时,可能会导致找不到Qt相关库。同时,NumPy版本不兼容可能是由于项目中依赖的库要求特定版本的NumPy,而当前环境安装的NumPy版本不符合要求。此外,收集到多个Qt绑定包错误通常是因为环境中安装了多个Qt绑定(如PyQt5和PySide2),导致PyInstaller无法确定使用哪一个。 解决步骤: 步骤1:解决ImportError: DLL load failed while importing QtCore错误 这个错误通常是由于PyQt5的动态链接库(DLL)未能正确加载引起的。可以尝试以下方法: - 确保PyQt5已正确安装:`pip install pyqt5` - 如果问题依旧,可以尝试将PyQt5的插件目录添加到环境变量,或者按照引用[3]的方法,将PyQt5的包复制到指定的路径(如C:/Qt/5.4.1/plugins)下。但注意,这个路径可能因安装而异,需要根据实际情况调整。 - 另外,可以尝试在打包命令中添加`--paths`参数指定PyQt5的安装路径。例如,如果PyQt5安装在`D:\Python\Python39\Lib\site-packages\PyQt5\Qt\bin`,则添加: `--paths "D:\Python\Python39\Lib\site-packages\PyQt5\Qt\bin"` 步骤2:解决NumPy版本不兼容问题 根据错误信息,可能是项目中使用的NumPy版本与某个库要求的版本冲突。可以尝试: - 升级或降级NumPy到兼容的版本。例如,如果项目需要NumPy 1.x,则卸载当前版本,安装1.x的最新版: `pip uninstall numpy` `pip install numpy==1.24.3` # 选择一个兼容的1.x版本 - 如果错误是由于依赖库要求NumPy 2.x,而当前安装的是1.x,则升级NumPy: `pip install --upgrade numpy==2.0.2` - 如果无法确定,可以检查项目依赖库的版本要求,或者尝试创建一个新的虚拟环境,重新安装所有依赖。 步骤3:解决attempt to collect multiple Qt bindings packages错误 这个错误表明环境中存在多个Qt绑定(如同时安装了PyQt5和PySide2)。PyInstaller无法自动选择,需要明确指定使用哪一个。 - 通常,我们只需要一个Qt绑定。如果项目中只使用PyQt5,则卸载其他的Qt绑定: `pip uninstall pyside2` `pip uninstall pyqt6` # 如果有安装其他版本的PyQt也卸载 - 如果项目中确实需要多个Qt绑定,那么可以在打包时通过添加`--hidden-import`来明确指定要导入的Qt绑定,并隐藏其他绑定的导入。但这种情况比较复杂,通常建议保持环境单一。 步骤4:尝试打包 在解决了上述问题后,尝试使用PyInstaller打包。建议使用以下命令格式,其中包含一些常用参数以避免常见问题: ``` pyinstaller --onefile --windowed --clean --noconfirm ^ --paths "PyQt5的安装路径(如果有必要)" ^ --hidden-import "可能需要隐藏导入的模块" ^ AccountRegisterApp.py ``` 如果项目中使用了数据文件或额外资源,还需要使用`--add-data`参数。 另外,根据引用[4]的信息,在Mac OS X下打包使用了`--windowed`和`--onefile`,在Windows下同样适用。 如果上述步骤仍不能解决问题,可以考虑创建一个干净的虚拟环境,然后逐一安装项目依赖,确保版本兼容性,再尝试打包。 以下是一个完整的示例命令,假设我们指定了PyQt5的路径: ``` pyinstaller --onefile --windowed --clean --noconfirm --paths "D:\Python\Python39\Lib\site-packages\PyQt5\Qt\bin" AccountRegisterApp.py ``` 注意:请将路径替换为实际路径。 如果问题仍然存在,请检查错误日志,根据日志分析缺失的模块或动态链接库,并尝试使用`--hidden-import`添加隐藏导入。 §§相关问题§§ 1. 如何创建虚拟环境来隔离Python项目依赖? 2. PyInstaller打包时如何处理数据文件和资源文件? 3. 如何减少PyInstaller打包生成的可执行文件大小? 4. 打包后程序运行时出现“Failed to execute script”错误如何调试? </think> 根据您遇到的打包问题,结合参考引用和PyInstaller常见解决方案,以下是系统性的解决步骤: ### 错误1:ImportError: DLL load failed while importing QtCore **解决方法:** 1. **检查PyQt5安装路径** 确保PyQt5插件路径被正确识别(参考引用[3]): ```bash pip show pyqt5 # 复制显示的Location路径中的PyQt5文件夹到打包命令的--paths参数 ``` 2. **添加Qt路径到打包命令** 在打包时显式指定Qt路径: ```bash pyinstaller --paths "C:/Python39/Lib/site-packages/PyQt5/Qt5/bin" ^ --paths "C:/Python39/Lib/site-packages/PyQt5" ^ AccountRegisterApp.py ``` > 路径根据实际安装位置修改,Windows路径用斜杠`/` 3. **更新PyQt5和SIP** ```bash pip install --upgrade pyqt5 sip ``` --- ### 错误2:NumPy 1.x与2.0.2版本不兼容 **解决方法:** 1. **统一NumPy版本** ```bash pip uninstall numpy # 卸载当前版本 pip install numpy==1.24.3 # 安装兼容版本 ``` 2. **检查依赖库兼容性** ```bash pip check # 验证依赖冲突 pip install pandas==1.5.3 matplotlib==3.7.0 # 按需降级相关库 ``` --- ### 错误3:attempt to collect multiple Qt bindings **解决方法:** 1. **移除冗余Qt绑定包** 卸载环境中多余的Qt库: ```bash pip uninstall pyside2 pyqt6 kivy # 保留PyQt5即可 ``` 2. **添加排除参数** 在打包命令中排除其他Qt绑定: ```bash pyinstaller --exclude-module PySide2 ^ --exclude-module PyQt6 ^ AccountRegisterApp.py ``` --- ### 完整打包命令示例 ```bash # Windows系统完整打包命令 pyinstaller --onefile --windowed --clean --noconfirm ^ --paths "C:/Python39/Lib/site-packages/PyQt5/Qt5/bin" ^ --paths "C:/Python39/Lib/site-packages/PyQt5" ^ --exclude-module PySide2 ^ --exclude-module PyQt6 ^ --hidden-import sklearn.utils._typedefs ^ # 添加其他缺失模块 AccountRegisterApp.py ``` > **关键参数说明**: > - `--onefile`:生成单个exe文件 > - `--clean`:清除缓存(参考引用[4]) > - `--windowed`:禁用命令行窗口 > - `--hidden-import`:手动添加隐式导入模块(根据错误日志补充) --- ### 验证打包结果 1. 检查生成文件: ```bash dist/AccountRegisterApp.exe # 主程序 ``` 2. 测试运行环境: - 将exe复制到**无Python环境的Windows机器**验证 - 缺失的DLL错误需通过`--add-binary`参数添加 > 若仍失败,使用`--debug all`参数获取详细加载日志: > ```bash > pyinstaller --debug all AccountRegisterApp.py > ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值