python setup.py报错 error: could not create ‘build\bdist.win-amd64\wheel\.
文件名过长导致无法打包python文件
·
想把算法的python文件打包成wheel,结果发现报错:
error: could not create 'build\bdist.win-amd64\wheel\. 文件目录...
for module not found
网上试过升级工具都不管用
最后发现是文件夹名字太长的原因
在win+r,输入 regedit,然后设置:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
路径下的变量 LongPathsEnabled, 将其置为 1即可.
更多推荐
所有评论(0)