Sam*_*Sam 8 python permissions macos pip python-2.7
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/beautifulsoup4-4.6.0.dist-info'Consider using the `--user` option or check the permissions.
Run Code Online (Sandbox Code Playgroud)
上面的错误是我尝试使用pip命令时得到的错误.我需要做的就是pip安装requirements.txt以使我的程序正常工作.我安装了python 2.7.1并将我的代码放在我可以使用python命令的地方.我尝试使用此命令更改权限:
chmod -R 777
Run Code Online (Sandbox Code Playgroud)
但它不起作用.我在我的电脑上安装了自制软件.我还尝试使用这个链接使用虚拟环境:http: //sourabhbajaj.com/mac-setup/Python/virtualenv.html但它也给了我许可问题.有没有建议摆脱这个权限问题并成功运行pip?下面的sudo命令也不起作用.
sudo pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
22149 次 |
| 最近记录: |