{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","tabs","tab"]},"redocly_category":"Guides","type":"markdown"},"seo":{"title":"Installing Python Pandas Matplotlib Jupyter Notebook Pytd","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"installing-python-pandas-matplotlib-jupyter-notebook-pytd","__idx":0},"children":["Installing Python Pandas Matplotlib Jupyter Notebook Pytd"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Additional pytd documentation is ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/pytd"},"children":["here"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We recommend that you use Python to install all required packages for pytd. You can refer to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://cloud.google.com/python/setup"},"children":["Python Basic Installation"]}," instructions provided by the Google Cloud platform, as well as the following information."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You must download and install Python before creating a development environment."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To install Python:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Download from the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.python.org/downloads/"},"children":["official site"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Review the official documentation for ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.python.org/3/using/windows.html"},"children":["Windows"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.python.org/3/using/mac.html"},"children":["macOS"]},", and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.python.org/3/using/unix.html"},"children":["Unix"]},". ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://realpython.com/installing-python/"},"children":["This step-by-step tutorial"]}," is also helpful."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["From a machine from which you use TD and the TD Toolbelt, open the command line terminal."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a directory specifically for the project and navigate to it. We recommend naming the environment name starting with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".venv"]},", so that Digdag can ignore those directories."]}]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"MacOS and Linux","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"cd <your-project> \npython3 -m venv .venv  \n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Windows","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"cmd","header":{"controls":{"copy":{}}},"source":"cd <your-project> \npy -3 -m venv .venv\n","lang":"cmd"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"activate-the-environment","__idx":1},"children":["Activate the environment"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["After creating the virtual environment, activate the environment."]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"MacOS and Linux","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"source .venv/bin/activate\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Windows","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"windows","header":{"controls":{"copy":{}}},"source":".\\\\.venv\\\\Scripts\\\\activate\n","lang":"windows"},"children":[]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Install pytd using the pip command:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"(.venv)$ pip install pytd  \n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Install Jupyter and related packages:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"(.venv)$ pip install jupyter notebook matplotlib seaborn  \n"},"children":[]}]},"headings":[{"value":"Installing Python Pandas Matplotlib Jupyter Notebook Pytd","id":"installing-python-pandas-matplotlib-jupyter-notebook-pytd","depth":1},{"value":"Activate the environment","id":"activate-the-environment","depth":2}],"frontmatter":{"seo":{"title":"Installing Python Pandas Matplotlib Jupyter Notebook Pytd"}},"lastModified":"2026-03-10T07:43:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/tools/cli-and-sdks/installing-python-pandas-matplotlib-jupyter-notebook-pytd","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}