Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pip install postal" #69

Open
singhrohit003 opened this issue Sep 11, 2020 · 2 comments
Open

"pip install postal" #69

singhrohit003 opened this issue Sep 11, 2020 · 2 comments

Comments

@singhrohit003
Copy link

Hello Team,

pip install postal on windows gives me error as below

D:>pip install postal
Collecting postal
Using cached postal-1.1.9.tar.gz (19 kB)
Requirement already satisfied: six in c:\users\rohit.singh\appdata\roaming\python\python38\site-packages (from postal) (1.15.0)
Using legacy 'setup.py install' for postal, since package 'wheel' is not installed.
Installing collected packages: postal
Running setup.py install for postal ... error
ERROR: Command errored out with exit status 1:
command: 'd:\software\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rohit.singh\AppData\Local\Temp\pip-install-x1n0x4jp\postal\setup.py'"'"'; file='"'"'C:\Users\rohit.singh\AppData\Local\Temp\pip-install-x1n0x4jp\postal\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rohit.singh\AppData\Local\Temp\pip-record-8cxlaxb2\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\software\python\Include\postal'
cwd: C:\Users\rohit.singh\AppData\Local\Temp\pip-install-x1n0x4jp\postal
Complete output (29 lines):
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\postal
copying postal\dedupe.py -> build\lib.win32-3.8\postal
copying postal\expand.py -> build\lib.win32-3.8\postal
copying postal\near_dupe.py -> build\lib.win32-3.8\postal
copying postal\normalize.py -> build\lib.win32-3.8\postal
copying postal\parser.py -> build\lib.win32-3.8\postal
copying postal\tokenize.py -> build\lib.win32-3.8\postal
copying postal\token_types.py -> build\lib.win32-3.8\postal
copying postal_init_.py -> build\lib.win32-3.8\postal
creating build\lib.win32-3.8\postal\tests
copying postal\tests\test_expand.py -> build\lib.win32-3.8\postal\tests
copying postal\tests\test_parser.py -> build\lib.win32-3.8\postal\tests
copying postal\tests_test_near_dupes.py -> build\lib.win32-3.8\postal\tests
copying postal\tests_init_.py -> build\lib.win32-3.8\postal\tests
creating build\lib.win32-3.8\postal\utils
copying postal\utils\encoding.py -> build\lib.win32-3.8\postal\utils
copying postal\utils\enum.py -> build\lib.win32-3.8\postal\utils
copying postal\utils\omitted.py -> build\lib.win32-3.8\postal\utils
copying postal\utils_init_.py -> build\lib.win32-3.8\postal\utils
copying postal\pyutils.h -> build\lib.win32-3.8\postal
running build_ext
building 'postal._expand' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\software\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rohit.singh\AppData\Local\Temp\pip-install-x1n0x4jp\postal\setup.py'"'"'; file='"'"'C:\Users\rohit.singh\AppData\Local\Temp\pip-install-x1n0x4jp\postal\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rohit.singh\AppData\Local\Temp\pip-record-8cxlaxb2\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\software\python\Include\postal' Check the logs for full command output.

@sergemercado
Copy link

sergemercado commented Jan 8, 2021

It says the latter part of the error, try doing that one.

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

Try downloading it here:
https://visualstudio.microsoft.com/visual-cpp-build-tools/

@naggefreschle
Copy link

I have quite the same but installed build tools already.
Any idea?
I'm using python 3.9 in pycharms on Windows.

Collecting postal
Using cached postal-1.1.9.tar.gz (19 kB)
Requirement already satisfied: six in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (fro
m postal) (1.16.0)
Building wheels for collected packages: postal
Building wheel for postal (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptoo
ls, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-oy66jjtn\postal_0a7b3e25857a
41e598934abe9e76ecb6\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-oy66jjtn\p
ostal_0a7b3e25857a41e598934abe9e76ecb6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.pa
th.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'
r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\user\Ap
pData\Local\Temp\pip-wheel-wfp9tfjc'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-oy66jjtn\postal_0a7b3e25857a41e598934abe9e76ecb6
Complete output (39 lines):
c:\users\user\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py:697: UserWarning: Usa
ge of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'de
scription_file' instead
warnings.warn(
c:\users\user\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py:697: UserWarning: Usa
ge of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'de
scription_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\postal
copying postal\dedupe.py -> build\lib.win-amd64-3.9\postal
copying postal\expand.py -> build\lib.win-amd64-3.9\postal
copying postal\near_dupe.py -> build\lib.win-amd64-3.9\postal
copying postal\normalize.py -> build\lib.win-amd64-3.9\postal
copying postal\parser.py -> build\lib.win-amd64-3.9\postal
copying postal\tokenize.py -> build\lib.win-amd64-3.9\postal
copying postal\token_types.py -> build\lib.win-amd64-3.9\postal
copying postal_init_.py -> build\lib.win-amd64-3.9\postal
creating build\lib.win-amd64-3.9\postal\tests
copying postal\tests\test_expand.py -> build\lib.win-amd64-3.9\postal\tests
copying postal\tests\test_parser.py -> build\lib.win-amd64-3.9\postal\tests
copying postal\tests_test_near_dupes.py -> build\lib.win-amd64-3.9\postal\tests
copying postal\tests_init_.py -> build\lib.win-amd64-3.9\postal\tests
creating build\lib.win-amd64-3.9\postal\utils
copying postal\utils\encoding.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\utils\enum.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\utils\omitted.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\utils_init_.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\pyutils.h -> build\lib.win-amd64-3.9\postal
running build_ext
building 'postal._expand' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\postal
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/local/include -Ic:\users\user\appdata\local\programs\python\python39\incl
ude -Ic:\users\user\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Stud
io\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Com
munity\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Pro
gram Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.1
9041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits
10\include\10.0.19041.0\cppwinrt /Tcpostal/pyexpand.c /Fobuild\temp.win-amd64-3.9\Release\postal/pyexpand.obj -std=c
99
cl : Befehlszeile warning D9002 : Unbekannte Option "-std=c99" wird ignoriert.
pyexpand.c
postal/pyexpand.c(2): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "libpostal/libpostal.h": No s
uch file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\b
in\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for postal
Running setup.py clean for postal
Failed to build postal
Installing collected packages: postal
Running setup.py install for postal ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setupt
ools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-oy66jjtn\postal_0a7b3e2585
7a41e598934abe9e76ecb6\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-oy66jjtn
\postal_0a7b3e25857a41e598934abe9e76ecb6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.
path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"
'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\user
1\AppData\Local\Temp\pip-record-wew_rk2a\install-record.txt' --single-version-externally-managed --compile --install
-headers 'c:\users\user\appdata\local\programs\python\python39\Include\postal'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-oy66jjtn\postal_0a7b3e25857a41e598934abe9e76ecb6
Complete output (39 lines):
c:\users\user\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py:697: UserWarning: U
sage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name '
description_file' instead
warnings.warn(
c:\users\user\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py:697: UserWarning: U
sage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name '
description_file' instead
warnings.warn(
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\postal
copying postal\dedupe.py -> build\lib.win-amd64-3.9\postal
copying postal\expand.py -> build\lib.win-amd64-3.9\postal
copying postal\near_dupe.py -> build\lib.win-amd64-3.9\postal
copying postal\normalize.py -> build\lib.win-amd64-3.9\postal
copying postal\parser.py -> build\lib.win-amd64-3.9\postal
copying postal\tokenize.py -> build\lib.win-amd64-3.9\postal
copying postal\token_types.py -> build\lib.win-amd64-3.9\postal
copying postal_init_.py -> build\lib.win-amd64-3.9\postal
creating build\lib.win-amd64-3.9\postal\tests
copying postal\tests\test_expand.py -> build\lib.win-amd64-3.9\postal\tests
copying postal\tests\test_parser.py -> build\lib.win-amd64-3.9\postal\tests
copying postal\tests_test_near_dupes.py -> build\lib.win-amd64-3.9\postal\tests
copying postal\tests_init_.py -> build\lib.win-amd64-3.9\postal\tests
creating build\lib.win-amd64-3.9\postal\utils
copying postal\utils\encoding.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\utils\enum.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\utils\omitted.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\utils_init_.py -> build\lib.win-amd64-3.9\postal\utils
copying postal\pyutils.h -> build\lib.win-amd64-3.9\postal
running build_ext
building 'postal._expand' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\postal
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /
c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/local/include -Ic:\users\user\appdata\local\programs\python\python39\in
clude -Ic:\users\user\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual St
udio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\C
ommunity\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\P
rogram Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0
.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kit
s\10\include\10.0.19041.0\cppwinrt /Tcpostal/pyexpand.c /Fobuild\temp.win-amd64-3.9\Release\postal/pyexpand.obj -std
=c99
cl : Befehlszeile warning D9002 : Unbekannte Option "-std=c99" wird ignoriert.
pyexpand.c
postal/pyexpand.c(2): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "libpostal/libpostal.h": No
such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133
\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\user\appdata\local\programs\python\python39\python.exe'
-u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-in
stall-oy66jjtn\postal_0a7b3e25857a41e598934abe9e76ecb6\setup.py'"'"'; file='"'"'C:\Users\user\AppData\L
ocal\Temp\pip-install-oy66jjtn\postal_0a7b3e25857a41e598934abe9e76ecb6\setup.py'"'"';f = getattr(tokenize, '"'"'
open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"
'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record 'C:\Users\user\AppData\Local\Temp\pip-record-wew_rk2a\install-record.txt' --single-version-exter
nally-managed --compile --install-headers 'c:\users\user\appdata\local\programs\python\python39\Include\postal' C
heck the logs for full command output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants