我一直试图在我的虚拟环境中安装"brightway2“pkg,使用最新版本的macOS M1芯片(Miniconda3 macOS Apple M1 64位bash),但安装一直因为冲突而失败。
当我插入这一行时,conda install -y -q -c conda-forge -c cmutel brightway2 jupyterlab
该命令输出以下内容
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:
./conda update conda如果这是macOS M1的不兼容,或者有什么办法解决这些冲突,任何人都会知道吗?
发布于 2022-05-04 20:20:42
我们在这里添加了M1 Mac的说明:https://2.docs.brightway.dev/installation.html#installation-on-mac-m1
发布于 2022-07-02 15:49:52
我对Brightway2 (和一般的Python!)都很陌生。我有一个MacBook Pro与M1 Pro,我运行了一些问题时,它的安装。我遵循了Brightway2 分步的M1 Mac指南,这就是我一直遇到的错误:
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用户的文档中。
https://stackoverflow.com/questions/72067557
复制相似问题