pip install paddlenlp出现问题解决方案

  1. 报错信息1如下
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决办法

pip install paddlenlp --ignore-installed

2.报错信息2如下

 ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\anocoda\\Lib\\site-packages\\markupsafe\\_speedups.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

解决办法

pip install --user -i paddlenlp --ignore-installed
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

你可能感兴趣的:(pip,python,开发语言)