#๐Ÿ”’ query

122 messages ยท Page 1 of 1 (latest)

cursive wolfBOT
#

@rotund kayak

Python help channel opened

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.

rotund kayak
#

@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

topaz agate
#

well first change filenames to snake_case

thorn pumice
rotund kayak
hushed creek
#

what does the file structure look like inside pycharm?

rotund kayak
#

my code appears

topaz agate
rotund kayak
#

is that what ur looking for ?

thorn pumice
topaz agate
thorn pumice
rotund kayak
#

i shall call u for that

#

sorry for nw and ty also

#

now back to my issue pls

topaz agate
#

yeah one thing at a time

rotund kayak
#

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

hushed creek
rotund kayak
#

which is what i got from frm (sorry if thats not what u meant mb)

rotund kayak
rotund kayak
#

okah

#

i got
idea
Venv
and test bot

topaz agate
#

when you open your project folder in pycharm it will show up on left side

thorn pumice
#

then requirements.txt should be a sibling (besides) of those files

hushed creek
rotund kayak
hushed creek
#

oh yeah, that's what I was talking about earlier

rotund kayak
rotund kayak
#

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 ?

hushed creek
#

it will show up along with test bot.py

rotund kayak
hushed creek
#

yup

rotund kayak
#

phew

#

so then

#

it shud show along with this too ?

#

cuz isnt those wht is showing in the side panel ?

hushed creek
#

Yes

rotund kayak
#

cud u wait a sec

#

lemme just try it

hushed creek
#

(you could have done that from the start, actually)

rotund kayak
#

now lemme c pycharm

#

came

#

woohoo

rotund kayak
#

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

topaz agate
#

but naming it requirements.txt is the norm

rotund kayak
#

oh

rotund kayak
#

yes

#

it came

#

with my packages

#

woohooooooo

topaz agate
#

well it can have any name you want it. It should be a txt file that's it

rotund kayak
#

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

thorn pumice
#

try it and see ๐Ÿ˜‰

#

trail and error is the best way to learn

rotund kayak
rotund kayak
#

i mean imma guess no

#

python shud b smart

#

unlike me

#

at least

#

imma guess it like tht

#

lol

sullen pagoda
# rotund kayak or create new

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

rotund kayak
#

nyways my query is cleard

sullen pagoda
#

>> would do append

rotund kayak
#

wth

#

axis told it wud just write on top of the existing file

#

r u sure

sullen pagoda
#

> will yes

thorn pumice
#

techincally speaking, it will create a new file that overwrites the last one

rotund kayak
sullen pagoda
#

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

rotund kayak
#

sorry new to this

#

hehe

#

nyways

#

tysm yall

#

have a good day

#

and bye

#

!clos

cursive wolfBOT
#
Did you mean:

!close

rotund kayak
#

!close

cursive wolfBOT
#
Python help channel closed

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.