-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python extension doesn't run code properly #3534
Comments
Got the feeling that it is not a vscode-python extension issues and more related to python in general or Anaconda3 in specific. Here one question to clear that out: What happen if you try to run your code from a command or powerScript external windows? If the same error message appear, this is probably not a vscode-python issues. If you still think it's a vscode-python issues, please, provide more information. |
The analysis by @DelBiss is very likely correct as we do not manipulate your I also notice the directory is named If you are able to run your code successfully using the exact same conda environment while it is activated, then please leave another comment. |
"python.pythonPath": "C:\Users\user\Anaconda3\python.exe" |
Today I made a fresh install of anaconda same thing happened Traceback (most recent call last): (base) C:\Users\user>conda list packages in environment at C:\Users\user\Anaconda3:Name Version Build Channel_ipyw_jlab_nb_ext_conf 0.1.0 py37_0 (base) C:\Users\user> |
found the solution |
Environment data
Actual behavior
import pandas as pd
import numpy as np
data = np.array([['','Col1','Col2'],
['Row1',1,2],
['Row2',3,4]])
df = pd.DataFrame(data=data[1:,1:],
index=data[1:,0],
columns=data[0,1:])
print(df)
I get the following error when using the run code
Traceback (most recent call last):
File "c:\Users\user\Documents\Visual Studio 2017\Projects\test1.py", line 1, in
import pandas as pd
File "C:\Users\user\Anaconda3\lib\site-packages\pandas_init_.py", line 19, in
"Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']
Expected behavior
to run the code
I can run the code when using run python file in terminal and when running selection/line in python terminal
Steps to reproduce:
Logs
non
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: