#๐ query
122 messages ยท Page 1 of 1 (latest)
@rotund kayak
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
@thorn pumice
these r the stuff i have in my pycharm projects
now ur saying tht it will be in this file itself yea ?
@hushed creek
well first change filenames to snake_case
lets.. not get off track
huh ?
what does the file structure look like inside pycharm?
umm wdym ?
like whn i click test bot
my code appears
well it will help when importing modules or using run command in terminal
is that what ur looking for ?
which isnt the issue we are addressing here
how ?
it will be one later on
one thing at a time
yeah one thing at a time
whr did golf coding guy go
some guy in discussion told requirements wud be here
under this group of files
that is under pycharmprojects
and not within these 3
You should open the folder as a project in pycharm instead
which is what i got from frm (sorry if thats not what u meant mb)
umm example
am not getting wht ur tellig
Sorry
when you open your project folder in pycharm it will show up on left side
then requirements.txt should be a sibling (besides) of those files
you're currently opening individual files for editing in pycharm
instead, you can open an entire folder as a project inside of pycharm
umm whn i click test bot
i have my thing over thr
like all my stuff
oh yeah, that's what I was talking about earlier
wdym single files
my thing is gonna b a single file only right ?
okah
what abt it
whr am i clicking a lotta files
i just clikc test bot
and am good to code
didnt get wht u meant
so my query still remains
lol
whr will tht requirements will b ?
it will show up along with test bot.py
in the side panel yea ?
yup
phew
so then
it shud show along with this too ?
cuz isnt those wht is showing in the side panel ?
Yes
(you could have done that from the start, actually)
how ?
lol
nvm
i thot from the start menu
lol
mb
am dumb
also now lemme test the requirements thingy
if it appears
@hushed creek
py -m pip freeze > requirements.txt
basically the requirements.txt is just to name the file ?
cant i name to somn else ?
like
install.txt or somn
i just wanna make sure .txt is thr at the end ?
can i do like tht
yes u can name it anything you want
but naming it requirements.txt is the norm
oh
thn i shall not change it
lol
just askd
yes
it came
with my packages
woohooooooo
well it can have any name you want it. It should be a txt file that's it
so lets say i add more packages
and run the same cmd
and it will just add new stuff to the same existing file
or create new
as of nw dont wanna add new packages
agreed
i mean imma guess no
python shud b smart
unlike me
at least
imma guess it like tht
lol
if it creates a new file with the old contents and some new stuff, how do you know if it added or created new anyway? that aside, the > thing makes a new file
nyways my query is cleard
>> would do append
> will yes
techincally speaking, it will create a new file that overwrites the last one
so i will have 2 of reuirements.txt or just one with the overwritten stuff ?
stuff on the command line doesn't generally create requirements(2).txt or wahtever you're thinking, it just does as you say and overwrites the existing one
yes thats what i thot
sorry new to this
hehe
nyways
tysm yall
have a good day
and bye
!clos
!close
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.