gpt4 book ai didi

python - OSX swift 没有名为 6 的模块

转载 作者:行者123 更新时间:2023-11-28 07:49:18 24 4
gpt4 key购买 nike

当我打开我的终端并输入“swift”时,发生以下导入错误

Air-zyx:~ zhangyongxu$ swift
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py", line 98, in <module>
import six
ImportError: No module named six

这是我的 python 版本。

Air-zyx:~ zhangyongxu$ python --version
Python 3.6.4 :: Anaconda, Inc.

我已经下载了“六”模块,但是还是不行。

最佳答案

像这样运行它:PATH=/usr/bin:$PATH swift 以便选择正确的系统 Python。

关于python - OSX swift 没有名为 6 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50110948/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com