ImportError:DLL加载失败:%1不是有效的Win32应用程序。我已经研究了2天,但无法解决。需要帮忙!!导入cx_Oracle时导入错误python
0
A
回答
0
有很多不同的原因可能会导致此错误,但您的问题确实没有足够的信息。您在标题中提到了cx_Oracle,但是您确定它已正确安装?该cx_Oracle网站,例如,提到:
pip install cx_Oracle
(on platforms other than Windows) or download directly from PyPI.
这个答案可能会帮助:easy_install cx_Oracle (python package) on Windows
0
确保你的Python,cx_Oracle和Oracle客户端都是64位或都是32位。如果其中一个不同,你可以得到这个错误。
相关问题
- 1. CX_Oracle导入错误libclntsh.so.12.1
- 2. wfastcgi失败导入cx_Oracle,但`python -c“导入cx_Oracle”成功
- 3. 导入zmq时python导入错误
- 4. 用MacOSX导入cx_Oracle(python)
- 5. 导入cx_Oracle和kinterbasdb返回错误
- 6. Python:导入错误
- 7. python导入错误
- 8. Python导入错误
- 9. 导入错误python
- 10. 导入错误:导入的Python
- 11. Python的cx_Oracle导入错误:DLL加载失败
- 12. cx_Oracle问题试图导入python
- 13. 导入错误导入beautifulsoup时
- 14. 导入cx_oracle的问题
- 15. 在Python中导入Tkinter时导入错误
- 16. 在导入两个类时在python中导入错误
- 17. TensorFlow导入错误:TensorFlow导入错误
- 18. Python包导入错误
- 19. python mysqldb导入错误
- 20. 导入错误watson_developer_cloud的Python
- 21. Python的导入错误 “getfullargspec”
- 22. python 2.7导入flup错误
- 23. python模块导入错误
- 24. 的Python/PySide导入错误
- 25. Python模块导入错误
- 26. Python相对导入错误?
- 27. 导入错误python中
- 28. NLTK导入错误Python
- 29. 导入模块错误Python
- 30. python PyUserInput导入错误
我的Python 2.7是64位(AMD 64),但我不知道如果我安装正确的cx_Oracle如何检查? –
确保您从PyPI的名称(https://pypi.python.org/pypi/cx_Oracle/5.2.1)中下载并安装了带有amd64的版本。但是,如果您使用的是Windows,那么如果您安装了错误的版本,则应该抱怨。但是,如果你只是复制它,你可以做到这一点。另外,请确保您使用的是64位版本的Oracle Instant Client。 –