ubuntu 14.04 install python3.4.4 and pyqt5
2016-03-31 11:18
731 查看
/usr/bin/ld: /opt/python3.4.1/lib/libpython3.4m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
This error raise because the linker could not find
When I built my
I used only one option
so I do not have a shared lib in my python's lib.
Then I rebuild my python with
then install
and successfully import PyQt.
However, I realize my python version is 3.4.0! Python exec. was linked to system python's lib...
This article helps me a lot: http://koansys.com/tech/building-python-with-enable-shared-in-non-standard-location
Finally, I add
./configure --prefix=/opt/python3.4.1 --enable-shared LDFLAGS= -Wl,-rpath /opt/python3.4.1/lib
and then installed PyQt5.
Now, I can enjoy it~(≧▽≦)/~
This error raise because the linker could not find
libpythonX.X.so.
When I built my
Python3.4.1,
I used only one option
--prefix,
so I do not have a shared lib in my python's lib.
Then I rebuild my python with
--enable-shared,
then install
PyQt5,
and successfully import PyQt.
However, I realize my python version is 3.4.0! Python exec. was linked to system python's lib...
This article helps me a lot: http://koansys.com/tech/building-python-with-enable-shared-in-non-standard-location
Finally, I add
LDFLAGS= -Wl,-rpath /opt/python3.4.1/libto configure option:
./configure --prefix=/opt/python3.4.1 --enable-shared LDFLAGS= -Wl,-rpath /opt/python3.4.1/lib
and then installed PyQt5.
Now, I can enjoy it~(≧▽≦)/~
相关文章推荐
- Python 2.7 学习笔记 模块和包
- python爬虫——windows + python3.4.3下的BeautifulSoup安装
- 基于python的tagcloud
- python-django-permission
- TC企业邮Python3 SMPT SSL 发件脚本
- python os.path模块
- 《Python数据分析基础教程:Numpy学习指南》- 速记 - 第九章
- 如何调用自己写的python函数?
- python学习的一些小技巧小结
- python if else单行
- python调用caffe接口进行classify时提示Mean shape incompatible with input shape错误的解决方法
- Python_property的用法
- Python 环境
- Python 小模块学习-------struct数据格式转换
- python学习笔记(requests)
- python中的外部扩展包pycha使用
- pip安装使用详解
- python里使用cv2.goodFeaturesToTrack()函数追踪图像里的关键点
- Python生成定长格式的字符串
- python解无忧公主的数学时间编程题001.py