New MacBookPro running Catalina. I have a virtualenv with no additional libraries installed yet. When I try to install nltk with pip3 install nltk
, I get the following long error. The gist of it being “Architecture Not Supported”.
I tried installing with pip3 install -U
but got a similar failure. Below is the all of the terminal text beginning with the first error message.
JavaScript
x
246
246
1
ERROR: Command errored out with exit status 1:
2
command: /Users/Jayco/projects/passgen/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/setup.py'"'"'; __file__='"'"'/private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-wheel-vixqiu0k
3
cwd: /private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/
4
Complete output (114 lines):
5
running bdist_wheel
6
running build
7
running build_py
8
creating build
9
creating build/lib.macosx-10.14.6-x86_64-3.8
10
creating build/lib.macosx-10.14.6-x86_64-3.8/regex
11
copying regex_3/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
12
copying regex_3/regex.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
13
copying regex_3/_regex_core.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
14
copying regex_3/test_regex.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
15
running build_ext
16
building 'regex._regex' extension
17
creating build/temp.macosx-10.14.6-x86_64-3.8
18
creating build/temp.macosx-10.14.6-x86_64-3.8/regex_3
19
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/Users/Jayco/projects/passgen/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.14.6-x86_64-3.8/regex_3/_regex.o
20
In file included from regex_3/_regex.c:48:
21
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
22
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
23
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/limits.h:63:
24
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
25
#error Unsupported architecture
26
^
27
In file included from regex_3/_regex.c:48:
28
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
29
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
30
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/limits.h:64:
31
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
32
#error architecture not supported
33
^
34
In file included from regex_3/_regex.c:48:
35
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
36
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
37
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
38
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:27:
39
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
40
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
41
#error architecture not supported
42
^
43
In file included from regex_3/_regex.c:48:
44
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
45
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
46
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
47
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:27:
48
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
49
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
50
^
51
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
52
typedef __int32_t __darwin_blksize_t; /* preferred block size */
53
^
54
note: '__int128_t' declared here
55
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
56
typedef __int32_t __darwin_dev_t; /* dev_t */
57
^
58
note: '__int128_t' declared here
59
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
60
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
61
^
62
note: '__uint128_t' declared here
63
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
64
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
65
^
66
note: '__uint128_t' declared here
67
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
68
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
69
^
70
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
71
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
72
^
73
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
74
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
75
^
76
note: '__uint128_t' declared here
77
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
78
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
79
^
80
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
81
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
82
^
83
note: '__int128_t' declared here
84
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
85
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
86
^
87
note: '__uint128_t' declared here
88
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
89
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
90
^
91
note: '__int128_t' declared here
92
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
93
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
94
^
95
note: '__uint128_t' declared here
96
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
97
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
98
^
99
note: '__uint128_t' declared here
100
In file included from regex_3/_regex.c:48:
101
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
102
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
103
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
104
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
105
typedef __uint32_t __darwin_wctype_t;
106
^
107
note: '__uint128_t' declared here
108
In file included from regex_3/_regex.c:48:
109
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
110
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
111
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:75:
112
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31:
113
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
114
#error architecture not supported
115
^
116
fatal error: too many errors emitted, stopping now [-ferror-limit=]
117
20 errors generated.
118
error: command 'xcrun' failed with exit status 1
119
----------------------------------------
120
ERROR: Failed building wheel for regex
121
Running setup.py clean for regex
122
Failed to build regex
123
Installing collected packages: tqdm, regex, nltk
124
Running setup.py install for regex error
125
ERROR: Command errored out with exit status 1:
126
command: /Users/Jayco/projects/passgen/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/setup.py'"'"'; __file__='"'"'/private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-record-2kbtvdvx/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Jayco/projects/passgen/venv/include/site/python3.8/regex
127
cwd: /private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/
128
Complete output (114 lines):
129
running install
130
running build
131
running build_py
132
creating build
133
creating build/lib.macosx-10.14.6-x86_64-3.8
134
creating build/lib.macosx-10.14.6-x86_64-3.8/regex
135
copying regex_3/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
136
copying regex_3/regex.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
137
copying regex_3/_regex_core.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
138
copying regex_3/test_regex.py -> build/lib.macosx-10.14.6-x86_64-3.8/regex
139
running build_ext
140
building 'regex._regex' extension
141
creating build/temp.macosx-10.14.6-x86_64-3.8
142
creating build/temp.macosx-10.14.6-x86_64-3.8/regex_3
143
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/Users/Jayco/projects/passgen/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.14.6-x86_64-3.8/regex_3/_regex.o
144
In file included from regex_3/_regex.c:48:
145
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
146
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
147
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/limits.h:63:
148
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
149
#error Unsupported architecture
150
^
151
In file included from regex_3/_regex.c:48:
152
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
153
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
154
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/limits.h:64:
155
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
156
#error architecture not supported
157
^
158
In file included from regex_3/_regex.c:48:
159
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
160
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
161
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
162
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:27:
163
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
164
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
165
#error architecture not supported
166
^
167
In file included from regex_3/_regex.c:48:
168
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
169
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
170
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
171
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:27:
172
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
173
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
174
^
175
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
176
typedef __int32_t __darwin_blksize_t; /* preferred block size */
177
^
178
note: '__int128_t' declared here
179
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
180
typedef __int32_t __darwin_dev_t; /* dev_t */
181
^
182
note: '__int128_t' declared here
183
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
184
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
185
^
186
note: '__uint128_t' declared here
187
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
188
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
189
^
190
note: '__uint128_t' declared here
191
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
192
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
193
^
194
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
195
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
196
^
197
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
198
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
199
^
200
note: '__uint128_t' declared here
201
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
202
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
203
^
204
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
205
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
206
^
207
note: '__int128_t' declared here
208
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
209
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
210
^
211
note: '__uint128_t' declared here
212
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
213
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
214
^
215
note: '__int128_t' declared here
216
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
217
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
218
^
219
note: '__uint128_t' declared here
220
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
221
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
222
^
223
note: '__uint128_t' declared here
224
In file included from regex_3/_regex.c:48:
225
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
226
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
227
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
228
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
229
typedef __uint32_t __darwin_wctype_t;
230
^
231
note: '__uint128_t' declared here
232
In file included from regex_3/_regex.c:48:
233
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
234
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
235
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:75:
236
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31:
237
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
238
#error architecture not supported
239
^
240
fatal error: too many errors emitted, stopping now [-ferror-limit=]
241
20 errors generated.
242
error: command 'xcrun' failed with exit status 1
243
----------------------------------------
244
ERROR: Command errored out with exit status 1: /Users/Jayco/projects/passgen/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/setup.py'"'"'; __file__='"'"'/private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-install-3izld5bk/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/t3/ccw8mfyj24s1cdsyrwtpb32r0000gp/T/pip-record-2kbtvdvx/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Jayco/projects/passgen/venv/include/site/python3.8/regex Check the logs for full command output.
245
246
Advertisement
Answer
I had the same problem with the default installed python. (pip3 install regex) When using python from brew it worked for me.
Try this:
JavaScript
1
3
1
brew install python3
2
/usr/local/bin/pip3 install nltk
3
or with a virtualenv:
JavaScript
1
5
1
brew install python3
2
/usr/local/bin/python3 -m venv venv
3
. venv/bin/activate
4
pip install ntlk
5