以管理员身份启动cmd窗口,执行如下命令
pip install ruamel-yaml -i https://pypi.tuna.tsinghua.edu.cn/simple
C:\Users\Administrator>pip install ruamel-yaml -i https://pypi.tuna.tsinghua.edu
.cn/simple
回车
![](http://tiebapic.baidu.com/forum/w%3D580/sign=1d68bbe3c318367aad897fd51e728b68/12e5cf198618367a778d09176b738bd4b21ce52d.jpg?tbpicau=2024-07-12-05_5e60adf14c27c4954fe70336413f7b36)
![](http://tiebapic.baidu.com/forum/w%3D580/sign=5620c5e2737adab43dd01b4bbbd5b36b/5aadb118367adab4e4d46d89ced4b31c8601e42d.jpg?tbpicau=2024-07-12-05_4e0a63f06d753ecb89b8d1189dae869c)
![](http://tiebapic.baidu.com/forum/w%3D580/sign=292175809fb44aed594ebeec831d876a/24ac017adab44aed814ac82ef61c8701a08bfb2d.jpg?tbpicau=2024-07-12-05_4273f562f9accfb98451b2ebae3757d4)
提示已经安装成功了
接下来启动jupyter notebook,看能否正常导入
![](http://tiebapic.baidu.com/forum/w%3D580/sign=8643994e0fed2e73fce98624b700a16d/94ceedb44aed2e733bedf0e6c201a18b86d6fa2d.jpg?tbpicau=2024-07-12-05_1c4be9c6a2ab7ccdd57531e4bffeb0c0)
这里需要注意的是不要在jupyter notebook或者spyder中执行安装库的命令,这样做经常看不到安装进度和容易死机。
直接在cmd窗口中用pip命令安装就行
如果在cmd窗口无法识别pip命令,则可以将pip.exe所在文件路径添加到path环境变量中
pip install ruamel-yaml -i https://pypi.tuna.tsinghua.edu.cn/simple
C:\Users\Administrator>pip install ruamel-yaml -i https://pypi.tuna.tsinghua.edu
.cn/simple
回车
![](http://tiebapic.baidu.com/forum/w%3D580/sign=1d68bbe3c318367aad897fd51e728b68/12e5cf198618367a778d09176b738bd4b21ce52d.jpg?tbpicau=2024-07-12-05_5e60adf14c27c4954fe70336413f7b36)
![](http://tiebapic.baidu.com/forum/w%3D580/sign=5620c5e2737adab43dd01b4bbbd5b36b/5aadb118367adab4e4d46d89ced4b31c8601e42d.jpg?tbpicau=2024-07-12-05_4e0a63f06d753ecb89b8d1189dae869c)
![](http://tiebapic.baidu.com/forum/w%3D580/sign=292175809fb44aed594ebeec831d876a/24ac017adab44aed814ac82ef61c8701a08bfb2d.jpg?tbpicau=2024-07-12-05_4273f562f9accfb98451b2ebae3757d4)
提示已经安装成功了
接下来启动jupyter notebook,看能否正常导入
![](http://tiebapic.baidu.com/forum/w%3D580/sign=8643994e0fed2e73fce98624b700a16d/94ceedb44aed2e733bedf0e6c201a18b86d6fa2d.jpg?tbpicau=2024-07-12-05_1c4be9c6a2ab7ccdd57531e4bffeb0c0)
这里需要注意的是不要在jupyter notebook或者spyder中执行安装库的命令,这样做经常看不到安装进度和容易死机。
直接在cmd窗口中用pip命令安装就行
如果在cmd窗口无法识别pip命令,则可以将pip.exe所在文件路径添加到path环境变量中