在Python 3.6上安装matplotlib的问题

时间:2019-07-02 12:23:07

标签: python python-3.x matplotlib pip

我最近在Windows 10计算机上安装了Python 3.6,这是由于没有Python 3.6或更高版本而无法安装Matplotlib的错误。

但是,当我运行python --version时,它仍会报告

  

Python 3.5.0

但是,我可以在C:\ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ Python 3.6中看到Python 3.6。

运行python -m pip install matplotlib仍然让我失望:

ERROR: Complete output from command python setup.py egg_info:
ERROR:
Beginning with Matplotlib 3.1, Python 3.6 or above is required.

This may be due to an out of date pip.

Make sure you have pip >= 9.0.1.

----------------------------------------

我也尝试过python -m pip install --upgrade pip,但它已经是最新版本(19.1.1)

我尝试使用python-3.6 -m pip install matplotlib直接运行Python 3.6,但得到了:

  

'python-3.6'无法识别为内部或外部命令,   可操作的程序或批处理文件。

感谢您的协助。我需要使用Python 3.6安装matplotlib,并希望将3.6作为我的默认Python实例。

0 个答案:

没有答案