Jump to content

I installed the VS code and then Anaconda. Whenever I run a simple command like

import numpy as np

It shows the following error on the terminal. I tried updating anaconda using conda terminal. But the issue persists. Error message in VS code terminal:

PS G:\Online Courses and Resources\Python> conda activate base
conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a    
path was included, verify that the path is correct and try again.
At line:1 char:1
+ conda activate base
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (conda:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS G:\Online Courses and Resources\Python> & C:/Anaconda/python.exe "g:/Online Courses and Resources/Python/testingpackges.py"
Traceback (most recent call last):
  File "g:/Online Courses and Resources/Python/testingpackges.py", line 1, in <module>
    import numpy as np
  File "C:\Anaconda\lib\site-packages\numpy\__init__.py", line 140, in <module>
    from . import _distributor_init
  File "C:\Anaconda\lib\site-packages\numpy\_distributor_init.py", line 34, in <module>
    from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.

I cant find a solution that works for me. 

 

Thanks

 
Tags
anaconda
Link to comment
https://linustechtips.com/topic/1122593-unable-to-run-vs-code-with-anaconda/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×