python3报错---Error in sitecustomize; set PYTHONVERBOSE for traceback: NameError: name 'reload' is not defined

今天重新开始复习APP的UI自动化的相关知识,准备把以前搭建的环境清除掉,重新动手搭建一次,巩固已有的知识。

首先:cmd后,输入pip list 查看我已经安装了的程序,发现报错:Error in sitecustomize; set PYTHONVERBOSE for traceback: NameError: name 'reload' is not defined

百度发现了解决办法:将路径D:python3Libsite-packages下文件sitecustomize.py改成sitecustomize_back.py

按照这个步骤,完美解决了问题。

绕后我用pin uninstall 命令,把我以前安装的各种UI自动化的库都删除了。重新安装。

原文地址:https://www.cnblogs.com/star12111/p/13784100.html