Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/355.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
Xcode 11在编译Python 3.8时显示缺少模块错误_Python_Xcode - Fatal编程技术网

Xcode 11在编译Python 3.8时显示缺少模块错误

Xcode 11在编译Python 3.8时显示缺少模块错误,python,xcode,Python,Xcode,在设置Xcode以开发Python之后,我遇到了以下错误: error: module importing failed: invalid pathname Hello World This Is Python! Program ended with exit code: 0 我创建了一个到Python3.8可执行文件的硬链接,但这不应该发生,我只是不知道为什么会发生。你知道为什么吗?所以我重新阅读了Eric Sundan关于设置这个的帖子,发现我没有取消选中“调试可执行文件”复选框。执行此操

在设置Xcode以开发Python之后,我遇到了以下错误:

error: module importing failed: invalid pathname
Hello World This Is Python!
Program ended with exit code: 0

我创建了一个到Python3.8可执行文件的硬链接,但这不应该发生,我只是不知道为什么会发生。你知道为什么吗?

所以我重新阅读了Eric Sundan关于设置这个的帖子,发现我没有取消选中“调试可执行文件”复选框。执行此操作后,错误消失了。

此问题不仅适用于python:)

新Xcode或新swift中的此问题:)

error: module importing failed: invalid pathname
Welcome to Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51).
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.taskgated.90006): Failed to bootstrap path: path = /usr/libexec/taskgated, error = 108: Invalid path
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.repl_swift.90004): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/repl_swift, error = 2: No such file or directory