pip install -U numpy进行更新的时候出现了上述的问题, 百度了一下直接在install后面加上--user--就可以了 pip install --user-- upgrade numpy