首页 > 解决方案 > Is it necessary to stop all python scripts when upgrading python packages?

问题描述

If a python script using package X is running and package X is being upgraded, will it lead to permission problem that will cause the upgrade to fail?

I am using Windows 10, Anaconda v5.2 running on python v3.6 and conda to do update of packages.

标签: pythonpython-3.xanacondaconda

解决方案


我刚才尝试了一个简单的测试。我运行了一个永远循环的python脚本。它使用 numpy。然后,我尝试安装需要降级 numpy 版本的 python 包(pytorch)。当脚本运行时,安装失败并出现一些“无权限”错误消息。我停止脚本后,安装成功。

根据本次实验的结果,结论是建议在进行python包升级时停止所有python脚本。


推荐阅读