MAC 安装psycopg2报错ld: library not found for -lssl

pip3 install psycopg2

报错:
ld: library not found for -lssl

解决参考:https://github.com/PyMySQL/mysqlclient-python/issues/169

安装前定义这两个环境变量就好了

export LDFLAGS="-L/usr/local/opt/openssl/lib"

export CPPFLAGS="-I/usr/local/opt/openssl/include"

原文地址:https://blog.51cto.com/cstsncv/2459130

时间: 2024-07-30 10:21:51

MAC 安装psycopg2报错ld: library not found for -lssl的相关文章

mac 安装mysql 报错“ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2)” 解决办法

首先安装 homebrew 再 brew install mysql 之后连接 mysql 无论是登录还是修改初始密码都会报如下的错误 ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2) 运行如下解决:参考 http://www.thinksaas.cn/group/topic/347978/ unset TMPDIR mysql_install_db --v

【Django】Mac 安装pip3-install-mysqlclient 报错

1.首先在pip3-install-mysqlclient时报错 mysql_config not found 2.逛了一些博客 让安装mysql或者mysql-connector-c 我安装了后者还是报错,现在报了这个错误 File "<string>", line 1, in <module> File "/private/var/folders/2f/r1pwfcp521q7z9kd240tr3700000gn/T/pip-build-u8yhU

mac安装mysql报错ERROR 1045 (28000): Access denied for.

安装完后,mysql -h localhost -u root -p 时候报错,ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)第一步:删除 /usr/local/mysql/data/ 下的 ib_logfile0和ib_logfile1文件.第二步:在系统偏好设置中停止Mysql服务第三步:cd /usr/local/mysql/bin/执行 ./mysqld_safe --

mac安装html5lib报错

pip安装html5lib包的时候报一下错误: ?  /test sudo  pip install html5lib The directory '/Users/lele/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that d

解决Mac安装tesserocr报错问题 Failed building wheel for

localhost:~ jerry$ Processing /var/www/git/python/tesserocr -bash: Processing: command not found localhost:~ jerry$ pip3 install tesserocr Collecting tesserocr Using cached https://files.pythonhosted.org/packages/f8/6d/4e81e041f33a4419e59edcb1dbdf3c5

mac安装chromedriver报错

运行提示:Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromed 此问题出现的原因是chromedriver路径不对 1.到chromedriver的根目录下 2.移动chromedriver到/usr/local/bin目录 命令如下 $unzip chromedriver_map32.zip $mv chromedriv

安装nghttp2 报错error: Libtool library used but &#39;LIBTOOL&#39; is undefined

nghttp2 报错error: Libtool library used but 'LIBTOOL' is undefined 如果重新安装libtool和autoconf升级到2.69后,还是报错, 则进行下面的操作: 1,查看aclocal的路径 aclocal --print-ac-dir 显示/usr/local/share/libtool/m4 ls看看里面没有m4文件. 则copy /usr/share/libtool/m4里面的m4文件到此目录下. 2,cd到nghtt2目录 执

编译安装 mysql 5.5,运行 cmake报错Curses library not found

是因为 curses库没有安装,执行下面的语句即可 yum -y install ncurses-devel 如果上述命令的结果是no package,则使用下面的命令安装 apt-get install libncurses5-dev 再删除一下CMAKE的缓存配置文件 rm CMakeCache.txt 编译安装 mysql 5.5,运行 cmake报错Curses library not found

Mac brew 安装mysql 报错 ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket

安装mysql 最新版 56 brew install mysql 启动报错 ben:~ soul$ which mysql /usr/local/bin/mysql ben:~ soul$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决办法 运行 ben:~ soul$ mysql.server start Starting MySQL .