首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"brightway2“pkg在macOS Apple M1上不兼容?

"brightway2“pkg在macOS Apple M1上不兼容?
EN

Stack Overflow用户
提问于 2022-04-30 10:11:12
回答 2查看 89关注 0票数 2

我一直试图在我的虚拟环境中安装"brightway2“pkg,使用最新版本的macOS M1芯片(Miniconda3 macOS Apple M1 64位bash),但安装一直因为冲突而失败。

当我插入这一行时,conda install -y -q -c conda-forge -c cmutel brightway2 jupyterlab

该命令输出以下内容

代码语言:javascript
复制
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package python_abi conflicts for:
brightway2 -> python_abi=3.9[build=*_cp39]
brightway2 -> bw2analyzer[version='<0.10.99'] -> python_abi[version='3.10.*|3.7.*|3.8.*',build='*_cp37m|*_cp310|*_cp38']
jupyterlab -> ipython -> python_abi[version='3.10.*|3.8.*|3.9.*',build='*_cp310|*_cp38|*_cp39']

Package wheel conflicts for:
jupyterlab -> jupyter-packaging[version='>=0.7,<1'] -> wheel
python=3.9 -> pip -> wheel

Package jinja2 conflicts for:
jupyterlab -> jupyter_server[version='>=1.4,<2'] -> jinja2[version='>2.10*|>=3.0.3']
jupyterlab -> jinja2[version='>=2.1|>=2.10']

我尝试了多次不同版本的python,尝试用anaconda安装,其他迷你版本,甚至pip命令,但什么都没有.我还确保在使用以下内容创建虚拟环境之前更新conda:

代码语言:javascript
复制
./conda update conda

如果这是macOS M1的不兼容,或者有什么办法解决这些冲突,任何人都会知道吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2022-05-04 20:20:42

票数 1
EN

Stack Overflow用户

发布于 2022-07-02 15:49:52

我对Brightway2 (和一般的Python!)都很陌生。我有一个MacBook Pro与M1 Pro,我运行了一些问题时,它的安装。我遵循了Brightway2 分步的M1 Mac指南,这就是我一直遇到的错误:

代码语言:javascript
复制
Intel MKL FATAL ERROR: This system does not meet the minimum requirements for use of the Intel(R) Math Kernel Library. 
The processor must support the Intel(R) Supplemental Streaming SIMD Extensions 3 (Intel(R) SSSE3) instructions. 
The processor must support the Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) instructions. 
The processor must support the Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions

然而,在Alexb21的这篇文章之后,我成功地让它发挥了作用,他的解决方案为我创造了奇迹:

感谢现在的工作,但是在安装命令行中有一些排印和遗漏要完成。下面是对我起作用的命令: CONDA_SUBDIR=osx-64 conda创建-n bw_rosetta python=3.9 conda激活bw_rosetta conda env配置vars设置CONDA_SUBDIR=osx-64 conda config -append channels conda - for conda config -追加通道cmutel conda安装brightway2 scikit umfpack conda删除pypardiso -强制执行

在他的解决方案的末尾,我还在bw_rosetta环境中安装了bw_rosetta,我尝试了安装ipykernel,但是由于许多冲突,这是不可能的。

我想知道这个解决方案是否可以实现/更新到未来M1用户的文档中。

感谢克里斯·穆特尔和所有在这个令人敬畏的项目中合作的人,感谢Alexb21的解决方案!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72067557

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档