Skip to content
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

Windows 11的同學如果你發現有多個同名的linebot環境無法設定環境變數 #2

Open
joshhu opened this issue Dec 6, 2024 · 0 comments

Comments

@joshhu
Copy link
Owner

joshhu commented Dec 6, 2024

處理無法設定環境變數問題

  • 檢查目前Windows下的linebot環境是否唯一
conda env list

image

  • 如果發現有多個linebot環境,直接先將這個虛擬環境刪除
conda env remove -n linebot
  • 重新新建linebot環境
conda create -n linebot python=3.12
  • 安裝需要的套件,這一次直接將ipykernel裝起來,不要用vscode安裝
conda activate linebot
pip install Flask pyngrok line-bot-sdk requests openai ipykernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant