Комментарии:
currently my program is working. But ill try to do this and see if something changes
ОтветитьI'm still going to do it. my python projects are all one big script anyway
ОтветитьI just spent like 5 hours trying to get my imports working without modifying the sys path directly. This video is exactly what I was looking for. Thank ya!
Ответитьwhat is the best way professionals deal with this? I want to learn the proper way so I can Implement it on my project. Thanks Anthony!
ОтветитьI don't think the cwd should be on the import path; as the author of an import statement I want to know that the code I intend to import hasn't been overridden by the presence of a random module in somebody's current directory. The very idea that it would do this is slightly terrifying!
ОтветитьGreat video, honestly something I've been wondering for over three years and never really got to the bottom of.
ОтветитьThanks Anthony, this is always useful! I just keep coming back to a video I have seen of yours whenever I run into these situations in "real life examples"
ОтветитьThanks for the detailed explanation!!! I already subscribe to your channel!!!
ОтветитьVery helpful! I spent several hours to solve this problem, and I finally solve it with your method!
ОтветитьI gotta be honest, after coding in Python for 3 years, your videos are always something I keep coming back to for little things here or there. It'll be like "I remember Anthony had a video on this... what did he say to do again?"
ОтветитьAmazing work friend
Ответитьgreat video as always, thank you
ОтветитьWould replying to a JIRA ticket with a YT video be passive aggressive? Asking for a friend.
ОтветитьAnthony ur the mann
Grate video with very useful info
Is it why python3 -m pip install package recommended?
ОтветитьTook me also a while to figure this out.
Ответитьthat fancy keyboard is just begging you to use vim
Ответитьliterally me crying why .. and . imports dont work
ОтветитьIm sure at somepoint, ill understand what he explained. lol
ОтветитьI can’t be the only one looking at the keyboard and not his screen.
ОтветитьAnthony, thank you so much for making these videos.
I have been doing PYTHONPATH for my whole life and never suspected there might be something wrong there.
If I can be helpful for any of your project, just let me know.
Your videos are wonderful, keep the good job
"$PYTHONPATH is almost always wrong" should be a tattoo
ОтветитьWHY AREN'T MY IMPORTS WORKING
ОтветитьThank you for another great video ! Very informative.
ОтветитьIs venv your virtualenv generator of choice? What are your thoughts on poetry/pipenv/pdm?
Ответитьdon't run, I agree. In all seriousness, I've not really run into this problem, but maybe that's because I just monoscript for console script like stuff, or use _file_ vs. os.cwd when trying to deal with paths of things, but it's been a while since I've had to do any of that kind of stuff.
Ответить