Jump to content

Need to update Python (VS Code) + other cool Python stuff

Go to solution Solved by MC Morrado,

Wait! I think the code fixed itself. It now works for some reason! I'm going to question it but my Magic 8-Ball in Python code works now! 

I'm pretty sure Python 3.10 and 3.11 are very similar, and I'd guess that basically all that book will work fine here.

 

But did you update the system with apt update and apt upgrade?

 

Try forcing the install of python 3.11 with apt install python3.11.

 

How is vscode setting the pythong used?

Link to post
Share on other sites

I tried following everything in a textbook teaching me Python, it's where I am supposed to code a magic 8-ball in Python following the book's picture guide. Import random doesn't work and I get an error at line 1.

Link to post
Share on other sites

1 hour ago, MC.Morrado said:

Import random doesn't work and I get an error at line 1.

Could you post the error it's giving you?

Computer engineering PhD student and RFML researcher

 

Daily Driver:

CPU: Ryzen 7 4800H | GPU: RTX 2060 | RAM: 32GB DDR4 3200MHz C16 | OS: Debian 13

 

Gaming PC:

CPU: Ryzen 5 5600X | GPU: EVGA RTX 2080Ti | RAM: 32GB DDR4 3200MHz C16 | OS: Windows 11

Link to post
Share on other sites

11 hours ago, dcgreen2k said:

Could you post the error it's giving you?

It's on a different computer. hold on, I'll try to get my 2011 MacBook booted up but first I have to do a long defragmentation of an old 3.5-inch hard drive.

Link to post
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×