PS C:\Users\Administrator\Desktop> function Repair-PythonSite {
>> param(
>> [string]$PythonPath = "E:\Python310"
>> )
>>
>> # 1. 定位关键目录
>> $libPath = "$PythonPath\Lib"
>> $sitePackages = "$PythonPath\Lib\site-packages"
>>
>> # 2. 彻底移除所有自定义文件
>> $filesToRemove = @(
>> "$libPath\sitecustomize.py",
>> "$libPath\sitecustomize.pyc",
>> "$sitePackages\environment-helper.pth",
>> "$sitePackages\environment_helper.py",
>> "$sitePackages\distutils-precedence.pth"
>> )
>>
>> foreach ($file in $filesToRemove) {
>> if (Test-Path $file) {
>> Remove-Item $file -Force -ErrorAction SilentlyContinue
>> Write-Host "🧹 Removed: $file" -ForegroundColor Yellow
>> }
>> }
>>
>> # 3. 修复原始site.py文件
>> $sitePath = "$libPath\site.py"
>> if (Test-Path $sitePath) {
>> # 备份原始文件
>> Copy-Item $sitePath "$sitePath.bak" -Force
>>
>> # 修复编码问题
>> $content = [System.IO.File]::ReadAllText($sitePath, [System.Text.Encoding]::UTF8)
>> $content = $content -replace "for n, line in enumerate\(f\):", @"
>> # Fixed encoding handling
>> try:
>> content = f.read()
>> except UnicodeDecodeError:
>> f.close()
>> f = open(fullname, encoding='utf-8')
>> content = f.read()
>> lines = content.splitlines()
>> for n, line in enumerate(lines):
>> "@
>>
>> [System.IO.File]::WriteAllText($sitePath, $content, [System.Text.Encoding]::UTF8)
>> Write-Host "🔧 Repaired site.py encoding handling" -ForegroundColor Cyan
>> }
>>
>> # 4. 创建安全的sitecustomize.py
>> $safeSiteCustomize = @'
>> # SAFE SITECUSTOMIZE
>> import sys
>> import os
>>
>> def safe_pth_handler(pth_file):
>> """Safe .pth file handler with encoding fallback"""
>> try:
>> with open(pth_file, 'r', encoding='utf-8') as f:
>> content = f.read()
>> except UnicodeDecodeError:
>> try:
>> with open(pth_file, 'r', encoding='latin-1') as f:
>> content = f.read()
>> except:
>> return False
>>
>> # Basic validation
>> if "exec" in content or "compile" in content:
>> return False
>>
>> # Only allow simple path additions
>> lines = [line.strip() for line in content.splitlines() if line.strip()]
>> for line in lines:
>> if line.startswith(('import', 'sys.', 'os.')):
>> return False
>>
>> # Add valid paths
>> for line in lines:
>> if os.path.exists(line):
>> sys.path.insert(0, line)
>>
>> return True
>>
>> # Restore original handler
>> if hasattr(sys, "__orig_site_pth_handler"):
>> sys._pth_handler = sys.__orig_site_pth_handler
>> else:
>> # Create backup of original handler
>> sys.__orig_site_pth_handler = sys._pth_handler
>> '@
>>
>> [System.IO.File]::WriteAllText("$libPath\sitecustomize.py", $safeSiteCustomize, [System.Text.Encoding]::UTF8)
>> Write-Host "🔧 Created safe sitecustomize.py" -ForegroundColor Cyan
>>
>> # 5. 验证修复
>> Write-Host "🔄 Testing Python environment..." -ForegroundColor Cyan
>> python -S -c "import site; print('✅ Site module loaded successfully')"
>> }
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> function Test-PythonEnvironment {
>> param(
>> [string]$PythonPath = "E:\Python310"
>> )
>>
>> # 1. 测试基本功能
>> $basicTest = python -c "import sys; print(f'Python version: {sys.version.split()[0]}')"
>> Write-Host $basicTest
>>
>> # 2. 测试模块导入
>> $moduleTest = python -c @"
>> try:
>> import site, os, sys
>> print('✅ Core modules imported')
>>
>> # Test sitecustomize
>> site_dir = os.path.dirname(site.__file__)
>> sitecustomize_path = os.path.join(site_dir, 'sitecustomize.py')
>> if os.path.exists(sitecustomize_path):
>> print(f'✅ sitecustomize.py exists: {sitecustomize_path}')
>> else:
>> print('⚠️ sitecustomize.py not found')
>> except Exception as e:
>> print(f'❌ Error: {e}')
>> "@
>> Write-Host $moduleTest
>>
>> # 3. 测试.pth文件处理
>> $pthTest = python -c @"
>> import tempfile
>> with tempfile.NamedTemporaryFile(suffix='.pth', delete=False) as tmp:
>> tmp.write(b'test_path\n')
>> pth_path = tmp.name
>>
>> try:
>> import site
>> site.addsitedir(os.path.dirname(pth_path))
>> print('✅ .pth file processed successfully')
>> finally:
>> os.unlink(pth_path)
>> "@
>> Write-Host $pthTest
>> }
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 执行修复
PS C:\Users\Administrator\Desktop> Repair-PythonSite -PythonPath "E:\Python310"
🧹 Removed: E:\Python310\Lib\sitecustomize.py
🔧 Repaired site.py encoding handling
🔧 Created safe sitecustomize.py
🔄 Testing Python environment...
✅ Site module loaded successfully
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 重启PowerShell会话
PS C:\Users\Administrator\Desktop> Write-Host "`n🔄 Please restart PowerShell session for changes to take effect" -ForegroundColor Yellow
🔄 Please restart PowerShell session for changes to take effect
PS C:\Users\Administrator\Desktop> Write-Host "Close this window and open a new one" -ForegroundColor Yellow
Close this window and open a new one
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 在新会话中测试
PS C:\Users\Administrator\Desktop> Test-PythonEnvironment -PythonPath "E:\Python310"
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Python version: 3.10.10
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Traceback (most recent call last):
File "<string>", line 3, in <module>
UnicodeEncodeError: 'gbk' codec can't encode character '\u2705' in position 0: illegal multibyte sequence
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 13, in <module>
UnicodeEncodeError: 'gbk' codec can't encode character '\u274c' in position 0: illegal multibyte sequence
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Traceback (most recent call last):
File "<string>", line 8, in <module>
NameError: name 'os' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 11, in <module>
NameError: name 'os' is not defined
PS C:\Users\Administrator\Desktop> function Repair-PythonSite {
>> param(
>> [string]$PythonPath = "E:\Python310"
>> )
>>
>> # 1. 定位关键目录
>> $libPath = "$PythonPath\Lib"
>> $sitePackages = "$PythonPath\Lib\site-packages"
>>
>> # 2. 彻底移除所有自定义文件
>> $filesToRemove = @(
>> "$libPath\sitecustomize.py",
>> "$libPath\sitecustomize.pyc",
>> "$sitePackages\environment-helper.pth",
>> "$sitePackages\environment_helper.py",
>> "$sitePackages\distutils-precedence.pth"
>> )
>>
>> foreach ($file in $filesToRemove) {
>> if (Test-Path $file) {
>> Remove-Item $file -Force -ErrorAction SilentlyContinue
>> Write-Host "🧹 Removed: $file" -ForegroundColor Yellow
>> }
>> }
>>
>> # 3. 修复原始site.py文件
>> $sitePath = "$libPath\site.py"
>> if (Test-Path $sitePath) {
>> # 备份原始文件
>> Copy-Item $sitePath "$sitePath.bak" -Force
>>
>> # 修复编码问题
>> $content = [System.IO.File]::ReadAllText($sitePath, [System.Text.Encoding]::UTF8)
>> $content = $content -replace "for n, line in enumerate\(f\):", @"
>> # Fixed encoding handling
>> try:
>> content = f.read()
>> except UnicodeDecodeError:
>> f.close()
>> f = open(fullname, encoding='utf-8')
>> content = f.read()
>> lines = content.splitlines()
>> for n, line in enumerate(lines):
>> "@
>>
>> [System.IO.File]::WriteAllText($sitePath, $content, [System.Text.Encoding]::UTF8)
>> Write-Host "🔧 Repaired site.py encoding handling" -ForegroundColor Cyan
>> }
>>
>> # 4. 创建安全的sitecustomize.py
>> $safeSiteCustomize = @'
>> # SAFE SITECUSTOMIZE
>> import sys
>> import os
>>
>> def safe_pth_handler(pth_file):
>> """Safe .pth file handler with encoding fallback"""
>> try:
>> with open(pth_file, 'r', encoding='utf-8') as f:
>> content = f.read()
>> except UnicodeDecodeError:
>> try:
>> with open(pth_file, 'r', encoding='latin-1') as f:
>> content = f.read()
>> except:
>> return False
>>
>> # Basic validation
>> if "exec" in content or "compile" in content:
>> return False
>>
>> # Only allow simple path additions
>> lines = [line.strip() for line in content.splitlines() if line.strip()]
>> for line in lines:
>> if line.startswith(('import', 'sys.', 'os.')):
>> return False
>>
>> # Add valid paths
>> for line in lines:
>> if os.path.exists(line):
>> sys.path.insert(0, line)
>>
>> return True
>>
>> # Restore original handler
>> if hasattr(sys, "__orig_site_pth_handler"):
>> sys._pth_handler = sys.__orig_site_pth_handler
>> else:
>> # Create backup of original handler
>> sys.__orig_site_pth_handler = sys._pth_handler
>> '@
>>
>> [System.IO.File]::WriteAllText("$libPath\sitecustomize.py", $safeSiteCustomize, [System.Text.Encoding]::UTF8)
>> Write-Host "🔧 Created safe sitecustomize.py" -ForegroundColor Cyan
>>
>> # 5. 验证修复
>> Write-Host "🔄 Testing Python environment..." -ForegroundColor Cyan
>> python -S -c "import site; print('✅ Site module loaded successfully')"
>> }
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> function Test-PythonEnvironment {
>> param(
>> [string]$PythonPath = "E:\Python310"
>> )
>>
>> # 1. 测试基本功能
>> $basicTest = python -c "import sys; print(f'Python version: {sys.version.split()[0]}')"
>> Write-Host $basicTest
>>
>> # 2. 测试模块导入
>> $moduleTest = python -c @"
>> try:
>> import site, os, sys
>> print('✅ Core modules imported')
>>
>> # Test sitecustomize
>> site_dir = os.path.dirname(site.__file__)
>> sitecustomize_path = os.path.join(site_dir, 'sitecustomize.py')
>> if os.path.exists(sitecustomize_path):
>> print(f'✅ sitecustomize.py exists: {sitecustomize_path}')
>> else:
>> print('⚠️ sitecustomize.py not found')
>> except Exception as e:
>> print(f'❌ Error: {e}')
>> "@
>> Write-Host $moduleTest
>>
>> # 3. 测试.pth文件处理
>> $pthTest = python -c @"
>> import tempfile
>> with tempfile.NamedTemporaryFile(suffix='.pth', delete=False) as tmp:
>> tmp.write(b'test_path\n')
>> pth_path = tmp.name
>>
>> try:
>> import site
>> site.addsitedir(os.path.dirname(pth_path))
>> print('✅ .pth file processed successfully')
>> finally:
>> os.unlink(pth_path)
>> "@
>> Write-Host $pthTest
>> }
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 执行修复
PS C:\Users\Administrator\Desktop> Repair-PythonSite -PythonPath "E:\Python310"
🧹 Removed: E:\Python310\Lib\sitecustomize.py
🔧 Repaired site.py encoding handling
🔧 Created safe sitecustomize.py
🔄 Testing Python environment...
✅ Site module loaded successfully
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 重启PowerShell会话
PS C:\Users\Administrator\Desktop> Write-Host "`n🔄 Please restart PowerShell session for changes to take effect" -ForegroundColor Yellow
🔄 Please restart PowerShell session for changes to take effect
PS C:\Users\Administrator\Desktop> Write-Host "Close this window and open a new one" -ForegroundColor Yellow
Close this window and open a new one
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 在新会话中测试
PS C:\Users\Administrator\Desktop> Test-PythonEnvironment -PythonPath "E:\Python310"
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Python version: 3.10.10
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Traceback (most recent call last):
File "<string>", line 3, in <module>
UnicodeEncodeError: 'gbk' codec can't encode character '\u2705' in position 0: illegal multibyte sequence
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 13, in <module>
UnicodeEncodeError: 'gbk' codec can't encode character '\u274c' in position 0: illegal multibyte sequence
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Traceback (most recent call last):
File "<string>", line 8, in <module>
NameError: name 'os' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 11, in <module>
NameError: name 'os' is not defined
PS C:\Users\Administrator\Desktop> # site.py 安全补丁 (添加到文件末尾)
PS C:\Users\Administrator\Desktop> import os
import : 无法将“import”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ import os
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> def safe_audit_hook(event, args):
所在位置 行:1 字符: 26
+ def safe_audit_hook(event, args):
+ ~
参数列表中缺少参量。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
PS C:\Users\Administrator\Desktop> if event == "import" and "sitecustomize" in args[0]:
所在位置 行:1 字符: 7
+ if event == "import" and "sitecustomize" in args[0]:
+ ~
if 语句中的“if”后面缺少“(”。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingOpenParenthesisInIfStatement
PS C:\Users\Administrator\Desktop> # Validate sitecustomize.py
PS C:\Users\Administrator\Desktop> sitecustomize_path = None
sitecustomize_path : 无法将“sitecustomize_path”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 9
+ sitecustomize_path = None
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (sitecustomize_path:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> for path in sys.path:
所在位置 行:1 字符: 12
+ for path in sys.path:
+ ~
关键字“for”后面缺少左“(”。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingOpenParenthesisAfterKeyword
PS C:\Users\Administrator\Desktop> candidate = os.path.join(path, "sitecustomize.py")
所在位置 行:1 字符: 42
+ candidate = os.path.join(path, "sitecustomize.py")
+ ~
参数列表中缺少参量。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
PS C:\Users\Administrator\Desktop> if os.path.exists(candidate):
所在位置 行:1 字符: 15
+ if os.path.exists(candidate):
+ ~
if 语句中的“if”后面缺少“(”。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingOpenParenthesisInIfStatement
PS C:\Users\Administrator\Desktop> sitecustomize_path = candidate
sitecustomize_path : 无法将“sitecustomize_path”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 17
+ sitecustomize_path = candidate
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (sitecustomize_path:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> break
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> if sitecustomize_path:
所在位置 行:1 字符: 11
+ if sitecustomize_path:
+ ~
if 语句中的“if”后面缺少“(”。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingOpenParenthesisInIfStatement
PS C:\Users\Administrator\Desktop> try:
try: : 无法将“try:”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 13
+ try:
+ ~~~~
+ CategoryInfo : ObjectNotFound: (try::String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> with open(sitecustomize_path, "r", encoding="utf-8") as f:
所在位置 行:1 字符: 45
+ with open(sitecustomize_path, "r", encoding="utf-8") ...
+ ~
参数列表中缺少参量。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
PS C:\Users\Administrator\Desktop> content = f.read()
所在位置 行:1 字符: 38
+ content = f.read()
+ ~
“(”后面应为表达式。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression
PS C:\Users\Administrator\Desktop> # Basic security checks
PS C:\Users\Administrator\Desktop> if "exec(" in content or "compile(" in content:
所在位置 行:1 字符: 23
+ if "exec(" in content or "compile(" in content:
+ ~
if 语句中的“if”后面缺少“(”。
所在位置 行:1 字符: 32
+ if "exec(" in content or "compile(" in content:
+ ~~
表达式或语句中包含意外的标记“in”。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingOpenParenthesisInIfStatement
PS C:\Users\Administrator\Desktop> print(f"⚠️ Potentially unsafe sitecustomize: {sitecustomize_path}")
f⚠️ Potentially unsafe sitecustomize: {sitecustomize_path} : 无法将“f⚠️ Potentially unsafe sitecustomize: {sitecustomize_p
ath}”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 31
+ ... print(f"⚠️ Potentially unsafe sitecustomize: {sitecustomize_pat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (f⚠️ Potentially...customize_path}:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> return False
False : 无法将“False”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 32
+ return False
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (False:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> except Exception as e:
except : 无法将“except”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 13
+ except Exception as e:
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (except:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> print(f"⚠️ Error validating sitecustomize: {e}")
f⚠️ Error validating sitecustomize: {e} : 无法将“f⚠️ Error validating sitecustomize: {e}”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名
称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 23
+ print(f"⚠️ Error validating sitecustomize: {e}")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (f⚠️ Error validating sitecustomize: {e}:String) [], CommandNotFoundExce
ption
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> sys.addaudithook(safe_audit_hook)
safe_audit_hook : 无法将“safe_audit_hook”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 18
+ sys.addaudithook(safe_audit_hook)
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (safe_audit_hook:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop> # 1. 测试基本功能
PS C:\Users\Administrator\Desktop> python -c "import sys; print(sys.version)"
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 2. 测试.pth文件处理
PS C:\Users\Administrator\Desktop> python -c "import tempfile; t=tempfile.NamedTemporaryFile(suffix='.pth', mode='w'); t.write('test_path'); t.flush(); import site; site.addsitedir(os.path.dirname(t.name)); print('Success')"
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'os' is not defined
PS C:\Users\Administrator\Desktop>
PS C:\Users\Administrator\Desktop> # 3. 测试模块导入
PS C:\Users\Administrator\Desktop> python -c "import torch, numpy as np; print(f'Torch: {torch.__version__}, Numpy: {np.__version__}')"
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute '_pth_handler'
Torch: 2.0.0+cpu, Numpy: 1.26.4
PS C:\Users\Administrator\Desktop>
最新发布