相关疑难解决方法(0)

无法在 macOS Big Sur 上安装 Matplotlib

自从我将 MacO 升级到 Big Sur 后,我的数据科学库出现了一些问题。我能够安装 numpy 和 pandas(尽管如本主题所述,它花费了不寻常的时间)。但是无法安装 Matplotlib。

我已经尝试了三件事......首先是默认的 MacOs 嵌入式 Phyton 3.8.2 。重新安装了 numpy,升级了 pip,但是当我尝试安装 Matplotlib 时。我有以下错误:

    RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
Run Code Online (Sandbox Code Playgroud)

后来,我在stackoverflow上看到了一些关于类似问题的建议,一个建议使用自制软件,所以我通过brew安装了Python 3.9.0。但是,当我尝试安装 Matplotlib 时,在尝试安装 Pillow 时仍然出现一个巨大的错误:

(.......) The headers or library files could not be found for jpeg,a required …
Run Code Online (Sandbox Code Playgroud)

python terminal matplotlib

6
推荐指数
1
解决办法
2406
查看次数

在 MacOS big sur 上安装 jupyterlab/jupyter 笔记本时出错

我正在尝试在我的 Mac 上安装 jupyter,但安装时遇到错误。

用于安装的命令:

pip install jupyterlab
pip install notebook
Run Code Online (Sandbox Code Playgroud)

两者都会给出类似的错误。

我承认我使用的是测试版操作系统,因此如果不支持它,我不会抱怨,只是要求确保这不是一些愚蠢的用户错误。

显示错误:

Defaulting to user installation because normal site-packages is not writeable
Collecting notebook
  Using cached notebook-6.1.4-py3-none-any.whl (9.5 MB)
Collecting traitlets>=4.2.1
  Using cached traitlets-5.0.4-py3-none-any.whl (98 kB)
Collecting prometheus-client
  Using cached prometheus_client-0.8.0-py2.py3-none-any.whl (53 kB)
Collecting argon2-cffi
  Using cached argon2-cffi-20.1.0.tar.gz (1.8 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/yagami/Library/Python/3.8/lib/python/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple …
Run Code Online (Sandbox Code Playgroud)

python macos pip jupyter-notebook macos-big-sur

4
推荐指数
1
解决办法
2万
查看次数