Prog Girl
Prog Girl

Reputation: 21

how can I use python 3.6 if I have python 3.7?

I'm trying to make a discord bot, and I read that I need to have an older version of Python so my code will work. I've tried using "import discord" on IDLE but an error message keeps on coming up. How can I use Python 3.6 and keep Python 3.7 on my Windows 10 computer?

Upvotes: 2

Views: 653

Answers (3)

Yuechuan Xiao
Yuechuan Xiao

Reputation: 86

i will suggest u using anaconda.

enter image description here

just create new environment named 'py36'

enter image description here

then set python version is 3.6

enter image description here

then run the environment.

if u use pyCharm u can use anaconda's interpreter as the Project's interpreter.

so problem solved.

Upvotes: 2

Chau Giang
Chau Giang

Reputation: 1554

  • Install in different folder than your old Python 3.6 then update path
  • Using Virtualenv and or Pyenv
  • Using Docker

Hope it help!

Upvotes: 0

noob
noob

Reputation: 141

Just install it in different folder (e.g. if current one is in C:\Users\noob\AppData\Local\Programs\Python\Python37, install 3.6. to C:\Users\noob\AppData\Local\Programs\Python\Python36).

Now, when you'll want to run a script, right click the file and under "edit with IDLE" will be multiple versions to choose. Works on my machine :)

Upvotes: 0

Related Questions