Skip to main content
 首页 » 编程设计

python之用户警告 : The virtualenv distutils package at %s appears to be in the same location as the system distutils

2025年02月15日25duanxz

D:\anzhuang\anconda\lib\distutils\__init__.py:14: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils? 
"The virtualenv distutils package at %s appears to be in the same location as the system distutils?") 

当我在我的计算机上同时安装 Python 2 和 3 并安装 virtualenv 进行学习时。但是当我导入一些包时,我收到了如图所示的警告。如何解决这个问题?我不知道发生了什么。

请您参考如下方法:

它只是一个警告,在执行包含该包的程序时也会出现。但是,为了克服这个警告消息,我编辑了文件 <"D:....\lib\distutils__init__.py"> 和删除了行:-)。 在你的例子中,文件是 D:\anzhuang\anconda\lib\distutils__init__.py: 并且第 14 行是 14..