spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.25k stars 1.6k forks source link

No matplotlib module #22561

Open Ruskibit05 opened 6 days ago

Ruskibit05 commented 6 days ago

Description

What steps will reproduce the problem?

Everytime I send numpy or pylab as input output shows no module named numpy or no module how can I activate the modules

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0             :  1.4.0 (OK)
chardet >=2.0.0                  :  4.0.0 (OK)
cloudpickle >=0.5.0              :  3.0.0 (OK)
cookiecutter >=1.6.0             :  2.6.0 (OK)
diff_match_patch >=20181111      :  20200713 (OK)
intervaltree >=3.0.2             :  3.1.0 (OK)
IPython >=8.13.0,<9.0.0,!=8.17.1 :  8.25.0 (OK)
jedi >=0.17.2,<0.20.0            :  0.19.1 (OK)
jellyfish >=0.7                  :  1.0.1 (OK)
jsonschema >=3.2.0               :  4.19.2 (OK)
keyring >=17.0.0                 :  24.3.1 (OK)
nbconvert >=4.0                  :  7.10.0 (OK)
numpydoc >=0.6.0                 :  1.7.0 (OK)
paramiko >=2.4.0                 :  2.8.1 (OK)
parso >=0.7.0,<0.9.0             :  0.8.3 (OK)
pexpect >=4.4.0                  :  4.8.0 (OK)
pickleshare >=0.4                :  0.7.5 (OK)
psutil >=5.3                     :  5.9.0 (OK)
pygments >=2.0                   :  2.15.1 (OK)
pylint >=2.5.0,<3.1              :  2.16.2 (OK)
pylint_venv >=3.0.2              :  3.0.3 (OK)
pyls_spyder >=0.4.0              :  0.4.0 (OK)
pylsp >=1.10.0,<1.11.0           :  1.10.0 (OK)
pylsp_black >=2.0.0,<3.0.0       :  2.0.0 (OK)
qdarkstyle >=3.2.0,<3.3.0        :  3.2.3 (OK)
qstylizer >=0.2.2                :  0.2.2 (OK)
qtawesome >=1.2.1                :  1.2.2 (OK)
qtconsole >=5.5.1,<5.6.0         :  5.5.1 (OK)
qtpy >=2.1.0                     :  2.4.1 (OK)
rtree >=0.9.7                    :  1.0.1 (OK)
setuptools >=49.6.0              :  68.0.0 (OK)
sphinx >=0.6.6                   :  7.3.7 (OK)
spyder_kernels >=2.5.0,<2.6.0    :  2.5.0 (OK)
textdistance >=4.2.0             :  4.2.1 (OK)
three_merge >=0.1.1              :  0.1.1 (OK)
watchdog >=0.10.3                :  4.0.1 (OK)
zmq >=22.1.0                     :  25.1.2 (OK)

# Optional:
cython >=0.21                    :  None (NOK)
matplotlib >=3.0.0               :  None (NOK)
numpy >=1.7                      :  None (NOK)
pandas >=1.1.1                   :  None (NOK)
scipy >=0.17.0                   :  None (NOK)
sympy >=0.7.3                    :  None (NOK)

Environment

Environment ``` # packages in environment at C:\Users\Alejandro Napoletano\anaconda3: # # Name Version Build Channel aiohappyeyeballs 2.4.0 py311haa95532_0 aiohttp 3.10.5 py311h827c3e9_0 aiosignal 1.2.0 pyhd3eb1b0_0 alabaster 0.7.16 py311haa95532_0 anaconda-anon-usage 0.4.2 py311hfc23b7f_0 anaconda-catalogs 0.2.0 py311haa95532_0 anaconda-client 1.12.1 py311haa95532_0 anaconda-cloud-auth 0.5.1 py311haa95532_0 anaconda-navigator 2.5.0 py311haa95532_0 anaconda-project 0.11.1 py311haa95532_0 annotated-types 0.6.0 py311haa95532_0 appdirs 1.4.4 pyhd3eb1b0_0 arrow 1.2.3 py311haa95532_1 astroid 2.14.2 py311haa95532_0 asttokens 2.0.5 pyhd3eb1b0_0 atomicwrites 1.4.0 py_0 attrs 23.1.0 py311haa95532_0 autopep8 2.0.4 pyhd3eb1b0_0 babel 2.11.0 py311haa95532_0 backports 1.1 pyhd3eb1b0_1 backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0 backports.tempfile 1.0 pyhd3eb1b0_1 backports.weakref 1.0.post1 py_1 bcrypt 3.2.0 py311h2bbff1b_1 beautifulsoup4 4.12.3 py311haa95532_0 binaryornot 0.4.4 pyhd3eb1b0_1 black 24.8.0 py311haa95532_0 bleach 4.1.0 pyhd3eb1b0_0 boltons 23.0.0 py311haa95532_0 brotli-python 1.0.9 py311hd77b12b_8 bzip2 1.0.8 h2bbff1b_6 ca-certificates 2024.7.2 haa95532_0 certifi 2024.8.30 py311haa95532_0 cffi 1.16.0 py311h2bbff1b_1 chardet 4.0.0 py311haa95532_1003 charset-normalizer 3.3.2 pyhd3eb1b0_0 click 8.1.7 py311haa95532_0 cloudpickle 3.0.0 py311haa95532_0 clyent 1.2.2 py311haa95532_1 colorama 0.4.6 py311haa95532_0 comm 0.2.1 py311haa95532_0 conda 23.9.0 py311haa95532_0 conda-build 3.28.4 py311haa95532_0 conda-content-trust 0.2.0 py311haa95532_0 conda-index 0.5.0 py311haa95532_0 conda-libmamba-solver 23.7.0 py311haa95532_0 conda-pack 0.6.0 pyhd3eb1b0_0 conda-package-handling 2.2.0 py311haa95532_0 conda-package-streaming 0.9.0 py311haa95532_0 conda-repo-cli 1.0.88 py311haa95532_0 conda-token 0.5.0 pyhd3eb1b0_0 conda-verify 3.4.2 py_1 console_shortcut 0.1.1 4 cookiecutter 2.6.0 py311haa95532_0 cryptography 43.0.0 py311h89fc84f_0 dask-core 2024.8.2 py311haa95532_0 debugpy 1.6.7 py311hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 diff-match-patch 20200713 pyhd3eb1b0_0 dill 0.3.8 py311haa95532_0 docstring-to-markdown 0.11 py311haa95532_0 docutils 0.18.1 py311haa95532_3 entrypoints 0.4 py311haa95532_0 executing 0.8.3 pyhd3eb1b0_0 filelock 3.13.1 py311haa95532_0 flake8 7.0.0 py311haa95532_0 fmt 9.1.0 h6d14046_1 freetype 2.12.1 ha860e81_0 frozenlist 1.4.0 py311h2bbff1b_0 fsspec 2024.6.1 py311haa95532_0 future 0.18.3 py311haa95532_0 icu 73.1 h6c2663c_0 idna 3.7 py311haa95532_0 imagesize 1.4.1 py311haa95532_0 importlib-metadata 7.0.1 py311haa95532_0 importlib_metadata 7.0.1 hd3eb1b0_0 inflection 0.5.1 py311haa95532_0 intake 0.6.6 py311haa95532_0 intervaltree 3.1.0 pyhd3eb1b0_0 ipykernel 6.28.0 py311haa95532_0 ipython 8.25.0 py311haa95532_0 isort 5.13.2 py311haa95532_0 jaraco.classes 3.2.1 pyhd3eb1b0_0 jedi 0.19.1 py311haa95532_0 jellyfish 1.0.1 py311h36a85e1_0 jinja2 3.1.4 py311haa95532_0 jpeg 9e h827c3e9_3 jsonpatch 1.33 py311haa95532_1 jsonpointer 2.1 pyhd3eb1b0_0 jsonschema 4.19.2 py311haa95532_0 jsonschema-specifications 2023.7.1 py311haa95532_0 jupyter_client 8.6.0 py311haa95532_0 jupyter_core 5.7.2 py311haa95532_0 jupyterlab_pygments 0.2.2 py311haa95532_0 keyring 24.3.1 py311haa95532_0 krb5 1.20.1 h5b6d351_0 lazy-object-proxy 1.10.0 py311h2bbff1b_0 lcms2 2.12 h83e58a3_0 lerc 3.0 hd77b12b_0 libarchive 3.7.4 h9243413_0 libclang 14.0.6 default_hb5a9fac_1 libclang13 14.0.6 default_h8e68704_1 libcurl 8.9.1 h0416ee5_0 libdeflate 1.17 h2bbff1b_1 libffi 3.4.4 hd77b12b_1 libiconv 1.16 h2bbff1b_3 liblief 0.12.3 hd77b12b_0 libmamba 1.5.8 h99b1521_3 libmambapy 1.5.8 py311h77c03ed_3 libpng 1.6.39 h8cc25b3_0 libpq 12.17 h906ac69_0 libsodium 1.0.18 h62dcd97_0 libsolv 0.7.24 h23ce68f_1 libspatialindex 1.9.3 h6c2663c_0 libssh2 1.11.0 h291bd65_0 libtiff 4.5.1 hd77b12b_0 libwebp-base 1.3.2 h2bbff1b_0 libxml2 2.13.1 h24da03e_2 locket 1.0.0 py311haa95532_0 lz4-c 1.9.4 h2bbff1b_1 m2-msys2-runtime 2.5.0.17080.65c939c 3 m2-patch 2.7.5 2 markdown-it-py 2.2.0 py311haa95532_1 markupsafe 2.1.3 py311h2bbff1b_0 matplotlib-inline 0.1.6 py311haa95532_0 mccabe 0.7.0 pyhd3eb1b0_0 mdurl 0.1.0 py311haa95532_0 menuinst 1.4.19 py311h59b6b97_1 mistune 2.0.4 py311haa95532_0 more-itertools 10.1.0 py311haa95532_0 msgpack-python 1.0.3 py311h59b6b97_0 msys2-conda-epoch 20160418 1 multidict 6.0.4 py311h2bbff1b_0 mypy_extensions 1.0.0 py311haa95532_0 navigator-updater 0.5.1 py311haa95532_0 nbclient 0.8.0 py311haa95532_0 nbconvert 7.10.0 py311haa95532_0 nbformat 5.9.2 py311haa95532_0 nest-asyncio 1.6.0 py311haa95532_0 numpydoc 1.7.0 py311haa95532_0 openjpeg 2.5.2 hae555c5_0 openssl 3.0.15 h827c3e9_0 packaging 24.1 py311haa95532_0 pandocfilters 1.5.0 pyhd3eb1b0_0 paramiko 2.8.1 pyhd3eb1b0_0 parso 0.8.3 pyhd3eb1b0_0 partd 1.4.1 py311haa95532_0 pathspec 0.10.3 py311haa95532_0 pcre2 10.42 h0ff8eda_1 pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 10.4.0 py311h827c3e9_0 pip 23.2.1 py311haa95532_0 pkce 1.0.3 py311haa95532_0 pkginfo 1.10.0 py311haa95532_0 platformdirs 3.10.0 py311haa95532_0 pluggy 1.0.0 py311haa95532_1 ply 3.11 py311haa95532_0 powershell_shortcut 0.0.1 3 powershell_shortcut_miniconda 0.0.1 haa95532_1 prompt-toolkit 3.0.43 py311haa95532_0 prompt_toolkit 3.0.43 hd3eb1b0_0 psutil 5.9.0 py311h2bbff1b_0 ptyprocess 0.7.0 pyhd3eb1b0_2 pure_eval 0.2.2 pyhd3eb1b0_0 py-lief 0.12.3 py311hd77b12b_0 pybind11-abi 5 hd3eb1b0_0 pycodestyle 2.11.1 py311haa95532_0 pycosat 0.6.6 py311h2bbff1b_1 pycparser 2.21 pyhd3eb1b0_0 pydantic 2.8.2 py311haa95532_0 pydantic-core 2.20.1 py311hefb1915_0 pydocstyle 6.3.0 py311haa95532_0 pyflakes 3.2.0 py311haa95532_0 pygments 2.15.1 py311haa95532_1 pyjwt 2.8.0 py311haa95532_0 pylint 2.16.2 py311haa95532_0 pylint-venv 3.0.3 py311haa95532_0 pyls-spyder 0.4.0 pyhd3eb1b0_0 pynacl 1.5.0 py311h8cc25b3_0 pyopenssl 24.2.1 py311haa95532_0 pyqt 5.15.10 py311hd77b12b_0 pyqt5-sip 12.13.0 py311h2bbff1b_0 pyqtwebengine 5.15.10 py311hd77b12b_0 pysocks 1.7.1 py311haa95532_0 python 3.11.5 he1021f5_0 python-dateutil 2.9.0post0 py311haa95532_2 python-dotenv 0.21.0 py311haa95532_0 python-fastjsonschema 2.16.2 py311haa95532_0 python-libarchive-c 2.9 pyhd3eb1b0_1 python-lsp-black 2.0.0 py311haa95532_0 python-lsp-jsonrpc 1.1.2 pyhd3eb1b0_0 python-lsp-server 1.10.0 py311haa95532_0 python-slugify 5.0.2 pyhd3eb1b0_0 python-snappy 0.6.1 py311hd77b12b_0 pytoolconfig 1.2.6 py311haa95532_0 pytz 2024.1 py311haa95532_0 pywin32 305 py311h2bbff1b_0 pywin32-ctypes 0.2.2 py311haa95532_0 pyyaml 6.0.1 py311h2bbff1b_0 pyzmq 25.1.2 py311hd77b12b_0 qdarkstyle 3.2.3 pyhd3eb1b0_0 qstylizer 0.2.2 py311haa95532_0 qt-main 5.15.2 h19c9488_10 qt-webengine 5.15.9 h5bd16bc_7 qtawesome 1.2.2 py311haa95532_0 qtconsole 5.5.1 py311haa95532_0 qtpy 2.4.1 py311haa95532_0 referencing 0.30.2 py311haa95532_0 reproc 14.2.4 hd77b12b_2 reproc-cpp 14.2.4 hd77b12b_2 requests 2.32.3 py311haa95532_0 requests-toolbelt 1.0.0 py311haa95532_0 rich 13.7.1 py311haa95532_0 rope 1.12.0 py311haa95532_0 rpds-py 0.10.6 py311h062c2fa_0 rtree 1.0.1 py311h2eaa2aa_0 ruamel.yaml 0.17.21 py311h2bbff1b_0 ruamel_yaml 0.17.21 py311h2bbff1b_0 semver 3.0.2 py311haa95532_0 setuptools 68.0.0 py311haa95532_0 sip 6.7.12 py311hd77b12b_0 six 1.16.0 pyhd3eb1b0_1 snappy 1.2.1 hcdb6601_0 snowballstemmer 2.2.0 pyhd3eb1b0_0 sortedcontainers 2.4.0 pyhd3eb1b0_0 soupsieve 2.5 py311haa95532_0 sphinx 7.3.7 py311h827c3e9_0 sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0 sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0 sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0 sphinxcontrib-serializinghtml 1.1.10 py311haa95532_0 spyder 5.5.1 py311haa95532_3 spyder-kernels 2.5.0 py311haa95532_0 sqlite 3.45.3 h2bbff1b_0 stack_data 0.2.0 pyhd3eb1b0_0 tabulate 0.9.0 py311haa95532_0 text-unidecode 1.3 pyhd3eb1b0_0 textdistance 4.2.1 pyhd3eb1b0_0 three-merge 0.1.1 pyhd3eb1b0_0 tinycss2 1.2.1 py311haa95532_0 tk 8.6.14 h0416ee5_0 tomli 2.0.1 py311haa95532_0 tomlkit 0.11.1 py311haa95532_0 toolz 0.12.0 py311haa95532_0 tornado 6.4.1 py311h827c3e9_0 tqdm 4.66.5 py311h746a85d_0 traitlets 5.14.3 py311haa95532_0 truststore 0.8.0 py311haa95532_0 typing-extensions 4.11.0 py311haa95532_0 typing_extensions 4.11.0 py311haa95532_0 tzdata 2024a h04d1e81_0 ujson 5.10.0 py311h5da7b33_0 unidecode 1.3.8 py311haa95532_0 urllib3 2.2.2 py311haa95532_0 vc 14.40 h2eaa2aa_0 vs2015_runtime 14.40.33807 h98bb1dd_0 watchdog 4.0.1 py311haa95532_0 wcwidth 0.2.5 pyhd3eb1b0_0 webencodings 0.5.1 py311haa95532_1 whatthepatch 1.0.2 py311haa95532_0 wheel 0.38.4 py311haa95532_0 win_inet_pton 1.1.0 py311haa95532_0 wrapt 1.14.1 py311h2bbff1b_0 xz 5.4.6 h8cc25b3_1 yaml 0.2.5 he774522_0 yaml-cpp 0.8.0 hd77b12b_1 yapf 0.40.2 py311haa95532_0 yarl 1.9.3 py311h2bbff1b_0 zeromq 4.3.5 hd77b12b_0 zipp 3.17.0 py311haa95532_0 zlib 1.2.13 h8cc25b3_1 zstandard 0.22.0 py311h3469f8a_0 zstd 1.5.5 hd43e919_2 ```
PhilipYip1988 commented 5 days ago

It seems your base Anaconda environment doesn't have numpy, matplotlib or pandas. Likely you have at some point tried to update the base environment and this has resulted in the uninstallation of a large number of packages.

The conda version is also pretty outdated and is an older version that uses the legacy solver which was known to be more problematic.

You should uninstall Anaconda. Then reinstall using the latest standalone installer Anaconda 2024.06-1 or alternatively use the latest Spyder Standalone Installer. The Spyder standalone installer has more recent versions of Spyder, numpy, pandas and matplotlib.