---
title: "#30daysOfStreamlit Day1 ローカル開発環境のセットアップ"
description: "condaのインストール condaにアクセスし、オペレーティングシステム (Windows、Mac、またはLinux)を選択してインストールします。\n新しいconda環境を作成する conda をインストールしたので、すべてのPythonライブラリの依存関係を管理するためのconda環境を作成しましょう。"
image: https://knowledge.insight-lab.co.jp/hubfs/30days_logo.png
---

[![INSIGHT LAB](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/INSIGHT%20LAB_%E6%96%87%E5%AD%97%E3%81%AE%E3%81%BF_WHT-1.png?width=400&height=110&name=INSIGHT%20LAB_%E6%96%87%E5%AD%97%E3%81%AE%E3%81%BF_WHT-1.png) ![INSIGHT LAB](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/INSIGHT%20LAB_%E6%96%87%E5%AD%97%E3%81%AE%E3%81%BF.png?width=400&height=110&name=INSIGHT%20LAB_%E6%96%87%E5%AD%97%E3%81%AE%E3%81%BF.png)](https://knowledge.insight-lab.co.jp/aidx)

[![お問い合わせ](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/5935783/97d2baf6-f3cd-4932-be66-900264c5d298.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/5935783/97d2baf6-f3cd-4932-be66-900264c5d298)

<https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlit-day1-%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E9%96%8B%E7%99%BA%E7%92%B0%E5%A2%83%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97#tmpmodule_1593485625696253>

- [AIDXナレッジ](https://knowledge.insight-lab.co.jp/aidx)

###### 1 分で読むことができます。

# [#30daysOfStreamlit Day1 ローカル開発環境のセットアップ](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlit-day1-ローカル開発環境のセットアップ)

 執筆者 [Budo Ogimoto](https://knowledge.insight-lab.co.jp/aidx/author/budo) 更新日時 2023年12月19日

###### Topics: [Python](https://knowledge.insight-lab.co.jp/aidx/tag/python) [streamlit](https://knowledge.insight-lab.co.jp/aidx/tag/streamlit)

![](https://knowledge.insight-lab.co.jp/hubfs/30days_logo.png)

 目次

## はじめに

---

この記事では、#30DaysOfStreamlitの内容の紹介を行います。   
#30DaysOfStreamlitについては[コチラの記事](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlitをやってみた)を参照してください。

## condaのインストール

[https://docs.conda.io/en/latest/miniconda.html](https://docs.conda.io/en/latest/miniconda.html) condaにアクセスし、オペレーティングシステム (Windows、Mac、またはLinux)を選択してインストールします。

## 新しいconda環境を作成する

conda をインストールしたので、すべてのPythonライブラリの依存関係を管理するためのconda環境を作成しましょう。  
Python 3.9 で新しい環境を作成するには、次のように入力します。

上記のコマンド実行により、stenvというPython3.9の環境が作られます。

## conda環境のアクティベート化

作成した環境をアクティベート化します。  
この作業により作成した環境を有効化して利用できるようになります。

## Streamlitライブラリをインストールする

作成したばかりの環境にはStreamlitがインストールされていない為、インストールを行います。  
以下のコマンドを実行します。

```
 
```

## Streamlitデモアプリを起動

Streamlitの動作確認も兼ねて、デモアプリを起動します。

起動コマンドは以下の通りです。

起動すると以下のようなアプリが立ち上がります。  
WindowsだとPythonのアクセスを許可するかのウィンドウがポップアップするので許可してください。

![SS00000096.JPG](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/SS00000096.JPG.jpg?width=1802&height=722&name=SS00000096.JPG.jpg)

- [Tweet](https://twitter.com/share)

![Budo Ogimoto](https://knowledge.insight-lab.co.jp/hubfs/Budo.png)

#### 執筆者 [Budo Ogimoto](https://knowledge.insight-lab.co.jp/aidx/author/budo)

柔術を操るデータサイエンティスト

###### [前の投稿](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlitをやってみた)

[![](https://knowledge.insight-lab.co.jp/hubfs/30days_logo.png)](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlitをやってみた)

###### [#30daysOfStreamlitをやってみた](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlitをやってみた)

###### [次の投稿](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlit-day2-streamlitアプリを構築する)

[![](https://knowledge.insight-lab.co.jp/hubfs/30days_logo.png)](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlit-day2-streamlitアプリを構築する)

###### [#30daysOfStreamlit Day2 Streamlitアプリを構築する](https://knowledge.insight-lab.co.jp/aidx/30daysofstreamlit-day2-streamlitアプリを構築する)

##### INFORMATION

INFORMATION

- [会社概要](https://www.insight-lab.co.jp/about/company.html)
- [お問い合わせ](https://www.insight-lab.co.jp/contact.html)

##### MENU

MENU

- [AIDXナレッジ](https://knowledge.insight-lab.co.jp/aidx)
- [NEWS AI SEARCH](https://solution.insight-lab.co.jp/ai/news-ai-search)

[![INSIGHT LAB](https://knowledge.insight-lab.co.jp/hs-fs/hubfs/INSIGHT%20LAB_%E6%96%87%E5%AD%97%E3%81%AE%E3%81%BF_WHT-1.png?width=200&height=55&name=INSIGHT%20LAB_%E6%96%87%E5%AD%97%E3%81%AE%E3%81%BF_WHT-1.png "INSIGHT LAB")](https://www.insight-lab.co.jp/)

- [プライバシーポリシー](https://www.insight-lab.co.jp/privacy.html)

Copyright © 2020 INSIGHT LAB, Inc.

<https://www.facebook.com/AI-Knowledge-204095220273271>