Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/351.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python can';升级到mojave后无法编译.so文件_Python_Gcc_Compilation_Cython_Macos Mojave - Fatal编程技术网

Python can';升级到mojave后无法编译.so文件

Python can';升级到mojave后无法编译.so文件,python,gcc,compilation,cython,macos-mojave,Python,Gcc,Compilation,Cython,Macos Mojave,我有一个带有一点python的django应用程序。 在升级到mojave之前,我编译了我的cython文件,一切正常。 因为Mojave,我不能再编译或运行服务器了。 我总是有同样的错误: File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: dlop

我有一个带有一点python的django应用程序。 在升级到mojave之前,我编译了我的cython文件,一切正常。 因为Mojave,我不能再编译或运行服务器了。 我总是有同样的错误:

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: dlopen(/project/algos/models.so, 2): no suitable image found.  Did find:
/project/algos/models.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/project/algos/models.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
我不知道问题出在哪里

gcc-v

Configured with: -- prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
安装包:

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
返回命令xcode select--install:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates
MacOS版本:10.14.2 Xcode版本:10.1版