#Downloaded pygame on vscode and can't find my normal python folders.
135 messages · Page 1 of 1 (latest)
It's a bit difficult to understand what you mean. Could you try explain what you mean by the following:
- Downloaded pygame on vscode. How did you "download" it?
- How did you "make vscode run pygame"
- What do you mean by "normal python lessons"
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 😭
David Malan is the goat
Oh you're talking about your file directory
Just use cd to change directory
brother's playing league 💀
Where do i type cd into? O.o
The terminal
I'm pretty sure David should've explained it, but I can't remember in what lecture
The cd thing didn't work for me
Just displays my directory with the same mypygame at the end
Can you copy and paste what you typed in the terminal and what it outputed?
sure!
That's the easiest way to communicate what's happening
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>
Where is the cd?
i type it and enter it but nothing happens lol
Why didn't you send those lines lol
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 😭
okay okay it's probably easier for me to find you a video lol
lol okie
Btw, if you mean you dragged it to the left side of your thing, I wouldn't always rely on that cause I think it moves the actual files and folders
Which might screw stuff up
😭
i never should have downloaded the pygame
i jumped the gun and ruined everything
You're fine lol
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
ohhhh ok so now i need to figure out the path i was using yesterday?
Yeah probably
But if you moved it then.....
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 👀
LOL im so boosted
Bro I haven't touched vscode for so long but I'll give it a look
Tbh If this was me, I'd just reinstall python and vscode lol
Because they're both root folders in an untitled workspace I don't think they'll have been moved
I'm sorry guys i just got ambitious and now its biting me in the butt lol
Perhaps, I'm just guessing as I never used workspaces in vscode
Ambition is good. That's how you learn
Neither, I'm just going off what the docs are giving me 😝
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
Any extensions installed on VS Code?
Just trying to get an idea of what environment I'm working with.
Or rather, any new ones?
Holy shit vscode makes my computer loud. How tf you gonna be louder than intellij.
K, so just standard aside a snippets plugin.
wait vscode has volume?!
That's crazy 💀
Nah, it's just that it runs in a chrome container so it eats memory and uses a ton of processing power
My suggestion is to learn to run python code from the terminal instead of through the vscode button lol
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
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'
Learn to use python from the terminal (and the terminal in general) and you'll find this stuff infinitely easier.
lol ok i will do that
i thought vscode was like "gold standard" since the harvard guy was doing it
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.
The "gold standard" is the editor you feel comfortable with and the one that allows you to do the job that's needed
ohhhh ok
cries in jetbrains subscription
Yep 😭
I gotta start paying for that stuff now as I'm not a student anymore
Cannot afford it tho lol
Notebooks are only available in Dataspell and Pycharm Pro rip
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
Yeah I got neovim all set up to how I like it. Only thing is that notebooks are wack so I gotta either use jupyter lab or vscode. I hope I don't gotta use notebooks too much tho
All goods, we all start somewhere and I know how difficult it is to figure stuff out by yourself especially as a beginner
Keep it up with CS50. It's a great course that I highly recommend!
ON LECTURE 4 i have to watch each lecture like 3 times to understand BUT IM GNNA KEEP PUSHING!!
Yeah, I don't want to write anything to do with notebooks.
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
Yeah, that's why I specifically avoided data science 😂
Are you taking notes?
Very important for understanding and retaining that information
Fair lmao. I just prefer maths and analysis over building software so that's why I did it
Yeah, I have a bad taste in my mouth after machine learning things when it comes to data.
I personally would say it's highly dependent on the person. Especially with coding and CS concepts, a lot of the information is easily accessible online and most people take notes in such a way that it's detrimental to their learning
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
That could be true we all have aspects that contribute to the quality of how we learn, I personally today just started the CS50 lecture and finished it. The first episode took me 4-5 hours even though it was 2 hours because I wrote 5 pages of notes by hand.
I got better by making a point of "I'm probably going to have to explain this to someone later on."
That's crazy hahaha
I actually found this really useful. That's why I try help people here as it reinforces my own understanding and help identify any gaps I have
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
Iirc the retention rate of content that someone teaches is somewhere upwards of 95%
feynman technique go ham
I didn't know that when I was 14 and started doing it tho.
We really just started rambling on about random stuff in someone's help channel lol
Do you mind me asking what you do?
I'm a full stack engineer
Mostly do Spring and React.
I hate both
Ahh true I remember seeing you talk about learning Spring
I can't do web dev for shit lol
I tried and hated it
But my other choice is maintaining a COBOL system so 🤷♂️
Doesn’t discord use React for its mobile app?
Idk maybe.
Might have to look into it.
😂
I think react and/or react native?
Can't remember tho
Web/app dev not my thing