Mac OS M1 Monterey 12.4:带有“ port”的错误Python库

发布于 2025-01-31 12:07:00 字数 457 浏览 4 评论 0原文

我有一个带有M1芯片的新MacBook Pro,而且似乎并不是将开源软件转换为ARM64。

不过,我尝试像在好时光一样编译来自来源的缺少工具(例如numpy)。当我尝试这样做时,我必须安装,deinstall很多,一个工具是“端口”,除了它一直抱怨我不再使用的库(因为某些工具(例如eclipse)),它一直在起作用。例如,不使用Python 3.10)。因此,我回归为Python 3.9,但是每次我想用“端口”安装某些东西(确实如此)时,都会抱怨“旧” python 3.10 libs。我怎么能摆脱此消息?

警告:错误解析文件 /opt/local/library/frameworks/python.framework/versions/3.10/lib/python3.10/site-packages/lxml/html/html/html/html/diff.cpython-310-darwin.so:

I´ve got a new MacBook Pro with M1 chip and it seems as if not alle of the open source software is converted to arm64.

Nethertheless, I try to compile missing tools (like numpy) manuell from source, like in the good ole days. As I try to do it I have to install, deinstall a lot and one tool is "port" which is working except for one thing that it complains all the time about Libraries I don't use anymore (because some tools (like Eclipse) for example are not working with Python 3.10). Therefore I regressed to Python 3.9 but every time I want to install something with "port" (which it does), it complains about the "old" Python 3.10 libs. How could I get rid of this messages?

Warning: Error parsing file
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/html/diff.cpython-310-darwin.so: Error opening or reading file

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瞄了个咪的 2025-02-07 12:07:00

我当时是一种“死锁”,因为版本,库和可执行文件与Python,Eclipse,Python Pip软件包等不一致,因为到目前为止,有些软件包尚未移植到AMD64。例如,Numpy和我试图从源头进行编译,但仍无法使用。

然后,我偶然发现了针对该特定问题的Rosetta的暗示。 (我从来没有与Rosetta一起工作,因为大多数应用程序正在运行),

因此我重复了“终端”应用程序,并为Rosetta配置了一个应用程序,在其中启动并安装了Python 3.10,其中包括所有新软件包,并从该终端中启动所有可执行文件。

在使用Python和我的应用程序所需的软件包(例如Numpy)的包装中,Eclipse Startet进行了一些提琴。

(除此之外,似乎比以前快得多)

I was in a sort of "Dead-Lock" because versions, Libraries and executables were not consistent with Python, Eclipse, Python pip packages etc, because some packages weren't ported to amd64 until now. For example numpy and I tried to compile it from source which was possible but still not working.

Then I stumbled over a hint in a different problematic were Rosetta was recommended for that specific problem. (I´ve never worked with Rosetta because most applications were running)

So I duplicated the "terminal" Application and configured one for Rosetta, started and installed Python 3.10 in it with all new packages and startet all executables from that terminal.

After some fiddling Eclipse startet with Python and the packages which my application needed, like numpy.

(And in addition to that, it seems as if it very much faster than before)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文