gpt4 book ai didi

Windows 上的 Python Matplotlib : Issue on updating matplotlib to 3. 1.2

转载 作者:行者123 更新时间:2023-12-04 10:14:37 25 4
gpt4 key购买 nike

在将 Matplotlib 发布到 3.1.2 版本之后,我在更新包版本时遇到了问题。

我试过:

  • conda install -c conda-forge matplotlib=3.1.2在 Jupyter notebook 中(没有成功,代码在我中断之前一直运行了 20 分钟);在 Anaconda 提示中出现以下失败结果:

  • (base) C:\Users\Adrien>conda install -c conda-forge matplotlib=3.1.2 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: | Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed


  • conda update matplotlib结果如下:

  • (base) C:\Users\Adrien>conda update matplotlib Collecting package metadata (current_repodata.json): done Solving environment: /

    Updating matplotlib is constricted by

    anaconda -> requires matplotlib==3.1.1=py37hc8f65d3_0

    If you are sure you want an update of your package either try conda
    update --all
    or install a specific version of the package you want using conda install <pkg>=<version>

    done

    Package Plan

    environment location: C:\Users\Adrien\Anaconda3

    added / updated specs: - matplotlib

    The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    backports.functools_lru_cache-1.6.1| py_0 11 KB
    conda-4.8.3 | py37_0 2.8 MB
    future-0.18.2 | py37_0 656 KB
    ------------------------------------------------------------
    Total: 3.5 MB

    The following packages will be UPDATED:

    backports.functoo~ 1.5-py_2 --> 1.6.1-py_0 conda 4.8.2-py37_0 --> 4.8.3-py37_0 future 0.17.1-py37_0 --> 0.18.2-py37_0

    Proceed ([y]/n)? y

    Downloading and Extracting Packages conda-4.8.3 | 2.8 MB |

    ################################################################## | 100% future-0.18.2 | 656 KB | ################################################################## | 100% backports.functools_ | 11 KB | ################################################################## | 100% Preparing transaction: done Verifying transaction: done

    Executing transaction: done

    (base) C:\Users\Adrien>import matplotlib 'import' is not recognized as an internal or external command, operable program or batch file.



    并在重新启动系统和 Jupyter 后,如您所料:
    import matplotlib
    print('matplotlib: {}'.format(matplotlib.__version__))

    matplotlib: 3.1.1



    关于下一步可能是什么的任何想法?

    提前谢谢了

    最佳答案

    你要么:

    conda update --all

    或者你尝试:
    conda install matplotlib=3.1.2

    关于Windows 上的 Python Matplotlib : Issue on updating matplotlib to 3. 1.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61138679/

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