问题
在 ArcGIS Pro 中,尝试克隆 Python 环境失败并返回以下错误:
Error:
InvalidArchiveError("Error with archive C:\\Users\\<username>\\AppData\\Local\\ESRI\\conda\\pkgs\\tensorflow-base-2.7.0-py39_cuda11.1_cudnn8.1_6.tar.bz2. You probably need to delete and re-download or re-create this file. Message was:\n\nfailed with error: [WinError 206] The filename or extension is too long: 'C:\\\\Users\\\\<username>\\\\AppData\\\\Local\\\\ESRI\\\\conda\\\\pkgs\\\\tensorflow-base-2.7.0-py39_cuda11.1_cudnn8.1_6\\\\Lib\\\\site-packages\\\\tensorflow\\\\include\\\\external\\\\cudnn_frontend_archive\\\\_virtual_includes\\\\cudnn_frontend\\\\third_party\\\\cudnn_frontend\\\\include\\\\contrib\\\\nlohmann\\\\json'")

根据问题原因,可以采用以下提供的解决方法。
确保文件名和路径不超过 Windows 允许的最大长度,即 260 个字符。 有关详细信息,请参阅 Microsoft Learn:最大路径长度限制。
Warning: The instructions below include making changes to essential parts of the operating system. Esri recommends performing a backup of the operating system and files, including the registry, before proceeding. Esri cannot guarantee results from incorrect modifications while following these instructions. Exercise caution. Consult a qualified computer systems professional if necessary.
conda clean –-all




Note: Alternatively, perform a clean uninstall and reinstall of ArcGIS Pro before cloning a new Python environment.
文章 ID: 000032633
获取来自 ArcGIS 专家的帮助
立即开始聊天