Я пытаюсь pip install psycopg2
в vscode cmd на Windows 8.1, что приводит к следующей ошибке.
ERROR: Command errored out with exit status 1:
command: 'c:\users\rock\envs\demo\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rock\\AppData\\Local\\Temp\\pip-install-fczxt3cu\\psycopg2\\setup.py'"'"'; __file__='"'"'C:\\Users\\rock\\AppData\\Local\\Temp\\pip-install-fczxt3cu\\psycopg2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\rock\AppData\Local\Temp\pip-wheel-i_fkxw14' --python-tag cp38
cwd: C:\Users\rock\AppData\Local\Temp\pip-install-fczxt3cu\psycopg2\
Complete output (22 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\psycopg2
copying lib\compat.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\errorcodes.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\errors.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\extensions.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\extras.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\pool.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\sql.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\tz.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_ipaddress.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_json.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_lru_cache.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_range.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\__init__.py -> build\lib.win-amd64-3.8\psycopg2
running build_ext
building 'psycopg2._psycopg' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/