无法使用pip安装

问题描述 投票:0回答:2

我试图在我的Mac上pip install beautifulsoup4,但是当我运行命令时,它显示了这个

错误:由于环境错误而无法安装软件包:[Errno 13]权限被拒绝:'/ Library / Python / 2.7 / site-packages / backports.functools_lru_cache-1.6.1.dist-info'考虑使用--user选项或检查权限。

有什么建议吗?

python macos beautifulsoup pip install
2个回答
0
投票

您尝试使用sudo命令吗?


0
投票

使用以下命令:

sudo pip install beautifulsoup4

应该可以解决您的问题。

© www.soinside.com 2019 - 2024. All rights reserved.