win10 ent安装Django时报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。

版权声明:== https://github.com/fyonecon == https://blog.csdn.net/weixin_41827162/article/details/84024157

-

Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'c:\\program files\\python37\\Lib\\site-packages\\pytz'
Consider using the `--user` option or check the permissions.

-

解决办法:命令行中加 --user

如:pip install --user Django==2.1.3

如: pip install --user beautifulsoup4 安装beautifulsoup4

如: python -m pip install --user --upgrade pip 升级pip

-

猜你喜欢

转载自blog.csdn.net/weixin_41827162/article/details/84024157