Python安装包时遇到环境错误[WinError 5]拒绝访问,如何解决?
- 内容介绍
- 文章标签
- 相关推荐
本文共计223个文字,预计阅读时间需要1分钟。
问题:我这样安装tensorflow:pip install 如下图:原因:安装东西到C盘没有权限+解决方案:添加--user pip install 成功:安装成功此时我遇到了下面的警告:WARNING: The scripts estimator_ckpt_c‘
问题
我这样安装tensorflow:
pip install如图:
原因:安装东西到C盘没有权限
解决
解决方法:添加 --user
成功:
安装成功此时我遇到了下面的警告:WARNING: The scripts estimator_ckpt_converter.exe, import_pb_to_tensorboard.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in ‘C:\Users\hp\AppData\Roaming\Python\Python37\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location
解决方法:根据提示把路径C:\Users\hp\AppData\Roaming\Python\Python37\Scripts添加到环境变量即可。
本文共计223个文字,预计阅读时间需要1分钟。
问题:我这样安装tensorflow:pip install 如下图:原因:安装东西到C盘没有权限+解决方案:添加--user pip install 成功:安装成功此时我遇到了下面的警告:WARNING: The scripts estimator_ckpt_c‘
问题
我这样安装tensorflow:
pip install如图:
原因:安装东西到C盘没有权限
解决
解决方法:添加 --user
成功:
安装成功此时我遇到了下面的警告:WARNING: The scripts estimator_ckpt_converter.exe, import_pb_to_tensorboard.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in ‘C:\Users\hp\AppData\Roaming\Python\Python37\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location
解决方法:根据提示把路径C:\Users\hp\AppData\Roaming\Python\Python37\Scripts添加到环境变量即可。

![Python安装包时遇到环境错误[WinError 5]拒绝访问,如何解决?](/imgrand/AwV18rq7.webp)