pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5]

本文介绍了解决使用pip安装spacy时遇到的权限错误问题,并提供了成功安装的步骤及注意事项,包括如何将安装目录加入到系统PATH环境变量中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问(已解决)

C:\Users\Administrator>pip install --user administrator spacy
~~~
Requirement already satisfied: smart-open<4.0.0,>=2.2.0 in d:\installed\programd
ata\anaconda3\lib\site-packages (from pathy>=0.3.5->spacy) (3.0.0)
Installing collected packages: spacy
  WARNING: The script spacy.exe is installed in 'C:\Users\Administrator\AppData\
Roaming\Python\Python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
Successfully installed spacy-3.0.5

https://blog.youkuaiyun.com/weixin_44827418/article/details/105443681

 

 

spacy库的三种安装方法,推荐第二种

https://blog.youkuaiyun.com/zhangf666/article/details/78527081

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值