python2.7卸载出问题原因分析_怎么卸载python2.7

博主遇到在Python2.5和2.6版本上运行程序出现错误,但在2.7版本上正常。尝试安装不同版本的pywin32模块后,遇到win32ui.pyd模块未找到的问题。解决方案包括彻底卸载所有Python版本,清理相关文件夹,然后重新安装。在某些情况下,特定版本的pywin32模块可能与系统不兼容,导致应用启动失败。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

引用来自“不必在乎我是谁”的答案

python 2.7 表示没有任何问题,无论是在控制台还是用 .py 文件。

用python2.5.1和python2.6.6 会出现这个问题,安装了python2.7就没有这个问题了。

######python 2.7 表示没有任何问题,无论是在控制台还是用 .py 文件。######回复

@不必在乎我是谁 : 我全部删除干净了,安装还是不行,我换了个pywin32-218.win-amd64-py2.7这个版本,安装可以,但双击pythonwin时,提示下面的错误:应用程序无法启动,因为应用程序的并行配置不正确。我要怎么解决呢?######回复

@火影熊 : 可能是你安装的版本太多了,版本之间有冲突。最好卸载掉所有版本后删除Python文件夹,再重新安装试试######回复

@不必在乎我是谁 : 我安装pywin32-214.win32-py2.7,之后在E:\Python27\Lib\site-packages\pythonwin路径下双击pythonwin图标后,就提示错误,信息如下:The application can not locate win32ui.pyd(or python)(126)找不到指定的模块。请问要怎么解决呢?谢谢######回复

@火影熊 : 我的确实可以跑,win7 x64 + py2.7……######你好,谢谢你的帮助。我在python2.5和2.7上都试了我的这段程序,还是同样的错误。######

class Thread:

__initialized = False

# Need to store a reference to sys.exc_info for printing

# out exceptions when a thread tries to use a global var. during interp.

# shutdown and thus raises an exception about trying to perform some

# operation on/with a NoneType

__exc_info = _sys.exc_info

# Keep sys.exc_clear too to clear the exception just before

# allowing .join() to return.

#XXX __exc_clear = _sys.exc_clear

def __init__(self, group=None, target=None, name=None,args=(), kwargs=None, *, daemon=None):

assert group is None, "group argument must be None for now"

if kwargs is None:

kwargs = {}

self._target = target

self._name = str(name or _newname())

self._args = args

self._kwargs = kwargs

if daemon is not None:

self._daemonic = daemon

else:

self._daemonic = current_thread().daemon

self._ident = None

self._started = Event()

self._stopped = False

self._block = Condition(Lock())

self._initialized = True

# sys.stderr is not stored in the class like

# sys.exc_info since it can be changed between instances

self._stderr = _sys.stderr

_dangling.add(self)######

试试 t=Mythread(None)

######还是一样的错误!######用 python 2.6.6 就好啦!我用的就是个者版本号,没有报错现象

######我安装pywin32-214.win32-py2.7,之后在E:\Python27\Lib\site-packages\pythonwin路径下双击pythonwin图标后,就提示错误,信息如下:The application can not locate win32ui.pyd(or python)(126)找不到指定的模块。请问要怎么解决呢?谢谢

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值