我安装了ArcGIS Pro 1.4,它没有注册它安装的Python 3.5.2,这使我无法安装任何附加组件。
reg add "HKLM\Software\Python\PythonCore\3.5\Help\Main Python Documentation" /reg:64 /ve /t REG_SZ /d "C:\Python35\Doc\Python352.chm"
reg add "HKLM\Software\Python\PythonCore\3.5\InstallPath" /reg:64 /ve /t REG_SZ /d "C:\Python35\"
reg add "HKLM\Software\Python\PythonCore\3.5\InstallPath\InstallGroup" /reg:64 /ve /t REG_SZ /d "Python 3.5"
reg add "HKLM\Software\Python\PythonCore\3.5\PythonPath" /reg:64 /ve /t REG_SZ /d "C:\Python35\Lib;C:\Python35\DLLs;C:\Python35\Lib\lib-tk"
我觉得这是更容易比:我通过使用管理员PowerShell会话“REG”命令来手动创建和填充必要的注册表键/值(:\ Python35其中安装在C Python)的解决了这一使用注册表编辑器,但这完全是个人偏好。
如果您愿意,可以在CMD.EXE会话中执行相同的命令;只要确保你以管理员身份运行它。
另请参阅相关的PEP 514 https://www.python.org/dev/peps/pep-0514/ – chip
这也固定ReportLab的 – dav