0

so I have been trying to

import pandas as pd

as well as

from tensorflow.keras.utils import to_categorical
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dence, Dropout

and

from sklearn.model_selection import train_test_split
from sklearn import preprocessing

These are segments of code from my deep learning training data. I have read solutions that I installed pandas and tensorflow on the terminal and that is different than the python running on vscode.

Would appreciate any help as I am new to coding.

1
  • Not true, VSC uses the Python interpreter installed on your system or a virtual environment using that Python interpreter Commented Jan 19, 2022 at 11:32

1 Answer 1

1

Find out which python Interpreter is used in your terminal by calling:

which python

(or python3 if you're using Python 3)

In VS Code, press Ctrl+Shift+P to bring up the command palette and run the command Python: Select Interpreter:

select interpreter

Choose the one from the output of the first command. The terminal and VS Code should use the same environment now.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.