我正在尝试安装cx_Oracle,但我在安装时遇到了问题 .
我有一个错误:
LINK:错误LNK2001:未解析的外部符号_DllMainCRTStartup build \ lib.win-amd64-3.4_mysql.pyd:致命错误LNK1120:56未解析的extern als错误:命令'c:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ VC \ bin \ amd64 \ link.exe'失败,退出状态为1120
System Info:
Windows 7 x64
Python 3.4.3 x64 .
我使用以下指南进行安装C部分安装:http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/#id7
我搜索了很多问题,但我没有找到解决方案 . 安装MySQL-python时我也遇到了同样的错误 .
3 回答
您必须先安装oracle客户端
确保:win7 x64; python x64; oracle客户端x64
pip install cx_Oracle
与源安装相同的问题,但二进制文件让它为我工作 . 从http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_oracle安装二进制文件 . 如果你需要这里是pip轮安装指南:https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels
尝试在命令行中使用此命令 .
git clone https://github.com/oracle/python-cx_Oracle.git cx_Oracle
cd cx_Oracle
git submodule init
git子模块更新
pip install cx_Oracle
这里还有一个链接:[链接试试]