python - 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.
解决方案
我刚才尝试了一个简单的测试。我运行了一个永远循环的python脚本。它使用 numpy。然后,我尝试安装需要降级 numpy 版本的 python 包(pytorch)。当脚本运行时,安装失败并出现一些“无权限”错误消息。我停止脚本后,安装成功。
根据本次实验的结果,结论是建议在进行python包升级时停止所有python脚本。
推荐阅读
- c# - 如何从 Microsoft Graph SDK 获取用户图像
- python - 在 (0, 1) 轴上查找 3d 数组的唯一最大索引
- javascript - 我们可以发出 POST 请求而不期待回复吗
- javascript - IndexedDB 的多查询很奇怪
- java - 显示正面结果而不是负面结果
- python - Python:'对象没有属性'(pyTsetlinMachine)
- android - 最大值和最小值之间的背景阴影 MPCharts Android
- python - 如何在 seaborn 热图中不仅标注大于 x 的值
- python - 如何删除 discord.py 中的用户命令消息?
- c++ - Visual Studio:项目参考与链接静态库