解决MAC 安装 requests 报错
2017-11-28 17:04
323 查看
MAC上安装requests,本来轻车熟路的事情,竟然报错了!!!啊!!!啊!!
如图
我想静静@-@
百度发现解决办法更加简单!!!+sudo
sudo pip install requests
Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install **kwargs File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/idna'
如图
相关文章推荐
- 安装软件时出现提示“软件已损坏”或“不是Mac Appstore下载的”解决方法
- 在MAC下安装一些软件时提示"来自身份不明开发者"解决方法
- mac 命令行 安装 需要管理员 权限“Please try running this command again as root/Administrator”的解决办法
- Mac MySQL启动不了解决办法(MySQL卸载重新安装教程)
- 用Mac安装homebrew的时候报错解决方法
- mac 命令行 安装 需要管理员 权限“Please try running this command again as root/Administrator”的解决办法
- mac系统下用VMWare安装ubuntu14.4系统不能上网解决办法
- Mac上安装R后报错的解决方法
- Mac安装android studio后卡在building gradle project info的解决方法
- XAMPP for MAC 安装后MYSQL不能正常启动的解决办法
- linux/mac安装mysql忘记密码的解决办法
- Mac使用brew安装nginx,并解决端口访问权限问题
- 解决MAC OS X 10.6.*无法安装软件的问题
- JMeter(一)在mac下安装Jmeter及问题Unable to access jarfile ./ApacheJMeter.jar 解决
- Mac环境安装 pip lxml requests
- 在Mac上安装pyspider时出现 error: command 'cc' failed with exit status 1 的解决方法
- mac/linux 下 selenium 导入python requests包的问题解决
- 解决Mac安装M2Crypto提示无法找到openssl头文件问题
- 【转】mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
- Mac下pip安装pymssql报错“brew install freetds”解决