无法在pypy3中安装cx_Oracle



当我试图在pypy3上安装cx_Oracle时,我收到以下错误消息:

==========================================================================================
Using cached https://files.pythonhosted.org/packages/5e/e3/cfd4f413f8d47dd2aee09273d9bb3ee6aa7384e0a04e191d703c2199eb93/cx_Oracle-7.3.0.tar.gz
Installing collected packages: cx-Oracle
Running setup.py install for cx-Oracle ... error
ERROR: Command errored out with exit status 1:
command: 'C:UsersANAND_RADownloadspypy3.6-v7.3.0-win32pypy3.6-v7.3.0-win32pypy3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ANAND_~1\AppData\Local\Temp\pip-install-ad2wy
'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersANAND_~1AppDataLocalTemppip-record-z5uxsatbinstall-r
cwd: C:UsersANAND_~1AppDataLocalTemppip-install-ad2wywdpcx-Oracle
Complete output (5 lines):
running install
running build
running build_ext
building 'cx_Oracle' extension
error: Microsoft Visual C++ 14.1 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UsersANAND_RADownloadspypy3.6-v7.3.0-win32pypy3.6-v7.3.0-win32pypy3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ANAND_~1\AppDat
.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersANAND_~1AppDataLocalT
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
=====================================================================================================

以下是我的机器中Python和pypy3的版本:

Python 3.6.9(1608da62bfc72019年12月23日,12:38:24([PyPy 7.3.0与MSC v.1911 32位]

我试图寻找一个解决方案来克服这个错误消息。但是,我找不到。所以,把这个作为一个新问题来问。谢谢Anand

您需要安装visual studio:https://visualstudio.microsoft.com/downloads/

请参阅:https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html

最新更新