Giter Site home page Giter Site logo

"pip install postal" about pypostal HOT 2 OPEN

singhrohit003 avatar singhrohit003 commented on June 5, 2024
"pip install postal"

from pypostal.

Comments (2)

sergemercado avatar sergemercado commented on June 5, 2024

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/

from pypostal.

naggefreschle avatar naggefreschle commented on June 5, 2024

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.

from pypostal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.