简体   繁体   English

在 Windows 10 中安装后,有没有办法更改 python 最大路径长度设置?

[英]Is there a way to change the python max path length setting after installing in Windows 10?

I'm having an anaconda installing issues with being unable to find directories, and it seems it stems from Python for Windows having a max path length setting enabled on install.我在安装 anaconda 时遇到了无法找到目录的问题,这似乎源于 Python for Windows 在安装时启用了最大路径长度设置。 Is there a way for me to disable this setting after the fact?事后有没有办法禁用此设置?

Thanks!谢谢!

Try running this as an administrator.尝试以管理员身份运行它。

reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1

Are you aware of the incompatibility this setting may cause with older systems?您是否知道此设置可能会导致与旧系统不兼容? I'm completely all for enabling long paths, just wanted to make sure you're aware of the side effects.我完全赞成启用长路径,只是想确保您了解副作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM