0

I installed all packages with conda and pip and even removed and reinstalled all of them.

After that I created a new envierment (conda create env -- newENV) with no packages and installed them from zero. I also tried conda update -all but I get this error again:

from numpy.core.numeric import NaN
ModuleNotFoundError: No module named 'numpy'

I deleted Visual Studio Code and installed it again too

Jan Wilamowski
  • 3,308
  • 2
  • 10
  • 23
Me8saM
  • 3
  • 3
  • Have you added the conda or pip site-packages path to your environment variables path ? – Abhi Feb 20 '22 at 18:05
  • Yes!! My script run well for 3 years until yesterday!!! Now I get this error :/ i don't know why this problem cured!!! – Me8saM Feb 20 '22 at 18:08
  • Are you able to access other installed packages ? or the problem is with them too ? – Abhi Feb 20 '22 at 18:11
  • yes for all off them!! even i have one line code as: << import pandas as pd >> i get this error for it too :? – Me8saM Feb 20 '22 at 18:13
  • It very much looks like path problem, your path might have been disturbed for some reason, if you could again set that path in your environment variables your problem would be resolved. – Abhi Feb 20 '22 at 18:21
  • Do you know how change path in mac??? I try it but default path is true – Me8saM Feb 20 '22 at 18:37
  • Try this out -- https://stackoverflow.com/questions/3387695/add-to-python-path-mac-os-x it might help – Abhi Feb 20 '22 at 18:50
  • @Alonso Have you selected the conda environment(the bottom-left on VSCode) which you have installed the packages? And have you checked the packages in the conda environment? You can get the packages list through `conda list -n {environment}`. – Steven-MSFT Feb 21 '22 at 07:19
  • @Me8saM Please check the comment above. – Abhi Feb 21 '22 at 07:29
  • 1
    I delete all python package and all env also base env!! Create and install new! It works!!! Thanks a lot everyone – Me8saM Feb 21 '22 at 10:19

0 Answers0