#Downloaded pygame on vscode and can't find my normal python folders.

135 messages · Page 1 of 1 (latest)

sage herald
#

hey guys i downloaded pygame on vscode last night and i was just using regular python on vscode. i made vscode run pygame and now i cant find any of my normal python lessons i was working on... Does anyone know what i should do? Or how to revert back from pygame to normal python? if thats evena thing? or am i just dumb?????

icy marsh
#

It's a bit difficult to understand what you mean. Could you try explain what you mean by the following:

#
  1. Downloaded pygame on vscode. How did you "download" it?
  2. How did you "make vscode run pygame"
  3. What do you mean by "normal python lessons"
sage herald
#

So i only had python yesterday. I have been following along with the harvard course on youtube from david malan. For some reason i decided to get pygame because i eventually want to try and make a game which is why i'm learning. And i got pygame and then i put it on vscode and ran the code to run pygame. So now when i type code in at the bottom of my terminal it says C:// blah black/desktop/pygame instead of /python and the only folder i have is from the example alien game instead of all the folders i made following the course 😭

icy marsh
#

David Malan is the goat

icy marsh
#

Just use cd to change directory

#

brother's playing league 💀

sage herald
#

Where do i type cd into? O.o

icy marsh
#

The terminal

#

I'm pretty sure David should've explained it, but I can't remember in what lecture

sage herald
#

The cd thing didn't work for me

icy marsh
#

What does it say?

#

"didn't work" doesn't give much information my guy

sage herald
#

Just displays my directory with the same mypygame at the end

icy marsh
#

Can you copy and paste what you typed in the terminal and what it outputed?

sage herald
#

sure!

icy marsh
#

That's the easiest way to communicate what's happening

sage herald
#

PS C:\Users\danth\Desktop\MyPyGame> pip install pygame
Defaulting to user installation because normal site-packages is not wr
Requirement already satisfied: pygame in c:\user
s\danth\appdata\local\packages\pythonsoftwarefou
ndation.python.3.12_qbz5n2kfra8p0\localcache\loc
al-packages\python312\site-packages (2.5.2)
on312\site-packages (2.5.2)

[notice] A new release of pip is available: 23.2.1 -> 23.3.2
[notice] To update, run: C:\Users\danth\AppData\Local\Microsoft\WindowonSoftwareFound
ation.Python.3.12_qbz5n2kfra8p0\python.exe -m pip install --upgrade pi
PS C:\Users\danth\Desktop\MyPyGame>

  • History restored

PS C:\Users\danth\Desktop\MyPyGame>

  • History restored

PS C:\Users\danth\Desktop\MyPyGame>

  • History restored

PS C:\Users\danth\Desktop\MyPyGame>

icy marsh
#

Where is the cd?

sage herald
#

i type it and enter it but nothing happens lol

icy marsh
#

Why didn't you send those lines lol

sage herald
#

THANKFULLY though i found my coding folder and dragged it into the vscode so i didnt lose all my follow alongs

#

but it still says pygame lol

#

then i hit enter and nothing happens 😭

icy marsh
#

okay okay it's probably easier for me to find you a video lol

sage herald
#

lol okie

icy marsh
#

Which might screw stuff up

sage herald
#

😭

#

i never should have downloaded the pygame

#

i jumped the gun and ruined everything

icy marsh
#

Just take it as a learning opportunity

#

I remember downloading random python packages until it started screwing up my projects

#

It was a good justification for me to learn about python environments

sage herald
#

ohhhh ok so now i need to figure out the path i was using yesterday?

icy marsh
#

Yeah probably

icy marsh
sage herald
#

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

#

yeah it still says pygame 😭

icy marsh
#

Why vscode changing your directory

#

I don't actually use vscode so I don't actually know what's happening

#

Luculent might

#

If they still lurking here 👀

sage herald
#

LOL im so boosted

drifting raven
#

Bro I haven't touched vscode for so long but I'll give it a look

icy marsh
drifting raven
sage herald
#

I'm sorry guys i just got ambitious and now its biting me in the butt lol

icy marsh
icy marsh
drifting raven
#

Neither, I'm just going off what the docs are giving me 😝

icy marsh
#

This is good learning opportunity

#

You're learning new things about the command line, that you should use environments, and vscode is quirky at times

drifting raven
#

Just trying to get an idea of what environment I'm working with.

#

Or rather, any new ones?

sage herald
#

i got these

drifting raven
#

Holy shit vscode makes my computer loud. How tf you gonna be louder than intellij.

drifting raven
sage herald
#

wait vscode has volume?!

drifting raven
icy marsh
#

My suggestion is to learn to run python code from the terminal instead of through the vscode button lol

drifting raven
#

So when you open a terminal it will open the first most folder in the workspace (MyPyGame)

#

So I'd recommend instead opening the folders individually through File >> Open Folder or Ctrl+K, Ctrl+O

#

Then you'll have a single folder workspace that will open instead of the multi-root untitled workspace

sage herald
#

OHHHH

#

I THINK U FIX

#

i dragged and swapped the order and now its running in normal python

#

THANK YOU

#

PS C:\Users\danth\OneDrive\Documents\Coding> c:; cd 'c:\Users\danth\OneDrive\Documents\Coding'; & 'C:\Users\danth\AppData\Local\Programs\Python\Python312\python.exe' 'c:\Users\danth.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '60520' '--' 'C:\Users\danth\OneDrive\Documents\Coding\banana.py'

drifting raven
#

Learn to use python from the terminal (and the terminal in general) and you'll find this stuff infinitely easier.

sage herald
#

lol ok i will do that

#

i thought vscode was like "gold standard" since the harvard guy was doing it

drifting raven
#

Vscode is just what most people end up using

#

But there's better tools out if you're willing to have an IDE for each programming language.

icy marsh
#

The "gold standard" is the editor you feel comfortable with and the one that allows you to do the job that's needed

sage herald
#

ohhhh ok

drifting raven
icy marsh
#

I gotta start paying for that stuff now as I'm not a student anymore

#

Cannot afford it tho lol

drifting raven
#

Community edition 🙃

#

Just spend 2 months configuring vim to your liking.

icy marsh
sage herald
#

Thank you guys again for helping me and being patient with me lol Being brand new is tough because i'm still learning how to talk like you guys too lol

icy marsh
icy marsh
#

Keep it up with CS50. It's a great course that I highly recommend!

sage herald
#

ON LECTURE 4 i have to watch each lecture like 3 times to understand BUT IM GNNA KEEP PUSHING!!

drifting raven
icy marsh
#

I do data science work and a lot of data scientists prefer notebooks (which I understand) so unfortunately it's an unevitability at least for the next few years

drifting raven
#

Yeah, that's why I specifically avoided data science 😂

shell steppe
#

Very important for understanding and retaining that information

icy marsh
drifting raven
#

Yeah, I have a bad taste in my mouth after machine learning things when it comes to data.

sage herald
#

im note padding right now LOL bc im scrub

icy marsh
#

I prefer to just practice and use the things lots of times and try develop a conceptual and intuitive understanding

#

Which makes it much easier to get a refresher on the details with a simple google search

#

To each their own tho

shell steppe
drifting raven
#

I got better by making a point of "I'm probably going to have to explain this to someone later on."

icy marsh
shell steppe
#

I plan on doing the same with the rest of them because I value low level understanding before I start with actual training. I’ll also focus on cybersecurity and low level languages such as C/C++ and try some others

#

So it’s pretty needed

drifting raven
icy marsh
#

feynman technique go ham

drifting raven
#

I didn't know that when I was 14 and started doing it tho.

icy marsh
#

We really just started rambling on about random stuff in someone's help channel lol

drifting raven
#

Yep

#

That's how it works 😂

icy marsh
drifting raven
#

Mostly do Spring and React.

#

I hate both

icy marsh
#

Ahh true I remember seeing you talk about learning Spring

#

I can't do web dev for shit lol

#

I tried and hated it

drifting raven
#

But my other choice is maintaining a COBOL system so 🤷‍♂️

shell steppe
drifting raven
shell steppe
#

Might have to look into it.

icy marsh
#

I think react and/or react native?

#

Can't remember tho

#

Web/app dev not my thing