I have matplotlib downloaded and installed but IDLE says it is not available.
I do have screenshots of my struggle with this.
I do not understand what is going wrong.
Jan Voskamp
I have matplotlib downloaded and installed but IDLE says it is not available.
I do have screenshots of my struggle with this.
I do not understand what is going wrong.
Jan Voskamp
I have matplotlib downloaded and installed but IDLE says it is not
available.
I do have screenshots of my struggle with this.
These 2 screenshots would go better as text pasted inline, eg:
```
pasted output
goes here
```
More legible and lets us copy/paste as text if that’ useful.
Anyway,…
I do not understand what is going wrong.
You seem to have 2 different Pythons installed. The pip
command
appears to be installing in a Python 3.10 install. Your IDLE seems to be
running 3.9.1. These have distinct install areas.
You need to install matplotlib in the Python which IDLE is using.
If necessary you can do this from inside Python by using the pip
module:
import pip
pip.main(['help'])
pip.main(['install', 'requests'])
That:
pip
modulepip help
requests
module, like pip install requests
In a way this is the recommanded way to use pip
: instead of running
the pip
command, run these desired Python and use its pip
module. As
an example command:
python -m pip install matplotlib
(Adjust for python
to suit.) This ensures that you’re using the pip
for that particular Python. The IDLE example above inherently uses the
Python which IDLE is using, because you’re importing its pip
and
installing with that.
Cheers,
Cameron Simpson cs@cskk.id.au
On 22Mar2023 15:29, Jan_Voskamp via Matplotlib nobody@discourse.matplotlib.org wrote: