MAC下安装pycurl报错的解决方法
来源:互联网 发布:linux utf-8编码 编辑:程序博客网 时间:2024/05/16 08:10
sudo pip install pycurl -i https://pypi.tuna.tsinghua.edu.cn/simple
报错:
1 warning generated.
In file included from src/threadsupport.c:1:
src/pycurl.h:190:5: warning: "libcurl was compiled with SSL support, but configure could not determine which " "library was used; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests" [-W#warnings]
# warning \
^
1 warning generated.
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.12-intel-2.7/src/docstrings.o build/temp.macosx-10.12-intel-2.7/src/easy.o build/temp.macosx-10.12-intel-2.7/src/module.o build/temp.macosx-10.12-intel-2.7/src/multi.o build/temp.macosx-10.12-intel-2.7/src/oscompat.o build/temp.macosx-10.12-intel-2.7/src/pythoncompat.o build/temp.macosx-10.12-intel-2.7/src/share.o build/temp.macosx-10.12-intel-2.7/src/stringcompat.o build/temp.macosx-10.12-intel-2.7/src/threadsupport.o -lcurl -o build/lib.macosx-10.12-intel-2.7/pycurl.so
running install_lib
copying build/lib.macosx-10.12-intel-2.7/pycurl.so -> /Library/Python/2.7/site-packages
running install_data
creating /System/Library/Frameworks/Python.framework/Versions/2.7/share
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/share': Operation not permitted
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-thsXKy/pycurl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-2Geh3A-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-thsXKy/pycurl/
网上查了下原因,要加上--user就好了
sudo pip install pycurl -i https://pypi.tuna.tsinghua.edu.cn/simple --user
这样就可以安装成功了。
备注:
将 pip 安装的包默认安装在用户目录。
说起来很简单,只需跟参数 --user
即可
- MAC下安装pycurl报错的解决方法
- mac下安装pycurl报错的解决办法
- mac下安装完myeclipse启动tomcat报错解决方法
- Linux下安装python的pycurl模块
- virtualenv下安装pycurl
- Windows下安装pycurl插件
- Mac 下安装pygame的错误解决方法
- Mac下安装mysql失败的解决方法
- Mac OS下安装 lxml报错
- Mac下安装MySQLdb报错解决
- Mac下安装pip报错
- mac下安装Slice2java 报错问题
- widows下安装pycurl并利用pycurl请求https地址
- 话说Mac终端下 遇到的千奇百怪的报错及解决方法
- Mac下Notes报错NSSQLiteErrorDomain error 8解决方法
- mac下 svn 提交@2x图片报错解决方法
- PYCURL ERROR 6 - "Couldn't 安装东西报错,apache安装启动
- quick-cocos2dx使用windows下向导生成的IOS工程在MAC下编译报错的解决方法
- makefile文件和gcc g++ gdb编译
- 【九度】题目1124:Digital Roots
- linux相关的知识记录
- 3、Arrays类排列字符
- form表单序列化
- MAC下安装pycurl报错的解决方法
- 记录常用Android和对应API版本
- poj 1200 Crazy Search
- 中国象棋将帅问题
- 4、二维数组计算班级成绩
- 23种设计模式(9):访问者模式
- 树莓派使用nginx+rtmp搭建直播服务器
- java 计算两个时间间隔一天
- 关于字体大小px与rem混用以及相关知识