0

I'm a beginner using youtube videos. I'm trying to learn to automate form's

from tkinter import *
import tkinter
import pandas as pd

I'm on window's and I've tried using anaconda, along with using pip install pandas.

Manjunath K Mayya
  • 1,078
  • 1
  • 11
  • 20
  • What error are you getting when you run `pip install pandas` command? It would help answering the question. But you may check if the environment variables are set correctly for python and pip. Refer this link https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command – Manjunath K Mayya Feb 26 '22 at 03:59
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Feb 27 '22 at 06:36

1 Answers1

0

Tkinter and Pandas are two separate packages. You can do: pip install tk to install Tkinter and pip install pandas to install Pandas. Then in your code you should be able to import them separately like so:

import tk
import pandas as pd

You can then reference Tkinter as tk and Pandas as pd

You could also do:

from tk import *
from pandas import *

Which would allow you to have access to all of the libraries' attributes without having to use td.some_attribute or pd.some_attribute

Does that help?

Edit: It seems that Tkinter cannot be installed by pip at this point. It looks like the tk package is actually the TensorKit package.

Colton
  • 51
  • 1
  • 2
  • 5
  • `tkinter` cannot be installed by `pip`. The [`tk`](https://pypi.org/project/tk/) module installed by `pip` is not `tkinter`. Check clearly before posting answer. – acw1668 Feb 26 '22 at 11:56
  • Ah, I see that now, I will edit the answer. – Colton Feb 27 '22 at 18:17