以管理员身份启动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
回车



提示已经安装成功了
接下来启动jupyter notebook,看能否正常导入

这里需要注意的是不要在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
回车



提示已经安装成功了
接下来启动jupyter notebook,看能否正常导入

这里需要注意的是不要在jupyter notebook或者spyder中执行安装库的命令,这样做经常看不到安装进度和容易死机。
直接在cmd窗口中用pip命令安装就行
如果在cmd窗口无法识别pip命令,则可以将pip.exe所在文件路径添加到path环境变量中