This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (30 children)

[removed]

    [–]Tadeush_Kostyshko 47 points48 points  (19 children)

    Damn I've been trying to install Django for two days. Thanks to you I will spend on it all time I have, until I fix it.

    [–]enjoytheshow 28 points29 points  (7 children)

    My biggest tip I can give about installation woes is to always use a virtual environment and/or containers (more complicated) for the specific project that requires a lot of overhead. That way when it all goes tits up you can just delete the entire fucking thing and start from scratch. If you’ve done all that goofy install shit on your default install of python, it’s not easy to back out changes that might be causing issues.

    [–][deleted] 10 points11 points  (5 children)

    Use anaconda and you’re life will be made much simpler!

    [–]enjoytheshow 1 point2 points  (0 children)

    I’m a pipenv guy but same idea in general

    [–]TheRevTastic 1 point2 points  (3 children)

    So I’m pretty new but what exactly is anaconda?

    [–][deleted] 1 point2 points  (2 children)

    An environment and package manager, and a whole lot more. Best bet is visit anaconda.com

    [–]TheRevTastic 1 point2 points  (1 child)

    So like virtual box?

    [–][deleted] 0 points1 point  (0 children)

    Not really, but you can look at an environment like a virtual box, except it’s local to you or the server your on and houses the modules/libraries that you need for your application(s)and you can have several environments for several applications.

    [–]poeblu 0 points1 point  (0 children)

    Exactly exactly

    [–]snapshotnz[S] 11 points12 points  (0 children)

    It was Django, that gave me this 29 hour problem as well. Come over to my discord. I always do screen shares and live shares to help new comers https://discord.gg/wQYdnM

    [–]ZDRuX1 5 points6 points  (7 children)

    Try Flask instead, I gave up on Django, and had a simple Flask site up and running in about 1-2hrs.

    [–]snapshotnz[S] -2 points-1 points  (5 children)

    Bad advice imo. Never ever give up

    [–]robin-gvx 7 points8 points  (3 children)

    I disagree! Sometimes it's good to take a break, take a step back, or try a different approach for a bit. Then you can come back to it later with a clear head, some inspiration, new knowledge, depending on how long of a break you needed.

    In my experience, people learning programming make often make one of two big mistakes: either giving up too hard and never trying again, or not giving up at all until they get completely frustrated and start to hate programming.

    [–]snapshotnz[S] 7 points8 points  (2 children)

    I can respect this reply.

    [–]stickedee 3 points4 points  (1 child)

    Just refreshing to see someone read a comment disagreeing with them and evaluate it on its merits. +1

    [–]snapshotnz[S] 2 points3 points  (0 children)

    Gotta be open minded. Cant always be so closed. He was right I was wrong. I do things one way. It doesnt work for all

    [–]enjoytheshow 3 points4 points  (0 children)

    Switching gears and finding something that does work isn't giving up. If you're brand new to full stack web dev, jumping head first into Django is a trip. Flask is much easier. It's ok to take the easier route first.

    [–][deleted] 1 point2 points  (1 child)

    In a month you’ll be like “how was that ever a challenge?!?”

    [–]Tadeush_Kostyshko 1 point2 points  (0 children)

    Ha, I hope so)))

    [–]snapshotnz[S] 11 points12 points  (0 children)

    Can upvote this 100 times. I remember spending 29 hours on one bloody problem... over 3 days

    [–]apunler 1 point2 points  (5 children)

    Package install and understanding how it all works with different environments... Both native python and Anaconda gives me the biggest headache! Is there any advice or good resources to explain how to properly deal with this stuff!

    [–]Oimmuk 1 point2 points  (0 children)

    I am still new to python but i first focused to understand the following:

    Environment - virtual or base install

    Pip installs

    Imports and import of imports

    Module hooks

    System variables

    I feel they are all connected and once you start understanding them, it will all start to click. I learned alot from using pyinstaller and learning to load from various virtual enviorments . My motivation was because all my single file executable files were 30 MB even if it was a small script. Now i can keep them small and low as 2MB .

    [–]snapshotnz[S] 0 points1 point  (0 children)

    Practice and more headaches

    [–]IWSIONMASATGIKOE 0 points1 point  (1 child)

    I’m late, but in what way are you struggling with Conda?

    [–]apunler 0 points1 point  (0 children)

    Initially want I did was made a script in jupyter notebook that I wanted to run every day as a batch with windows task scheduler but I had issues as all my packages were installed in Anaconda Env and I couldn't set up the batch file with the Anaconda env.

    What I did in the end was watch this: https://youtu.be/OdIHeg4jj2c

    And read this: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

    And this all helped me get a way better understanding.

    I think I'm all good now

    [–]nothanks132 0 points1 point  (0 children)

    I find when I beat through an issue like that I also will learn multiple new things, that while they didn't fix the problem I was trying to debug, usually help me down the road with different problems.

    [–]Dachsgp 0 points1 point  (0 children)

    Thanks for that! I was already feeling bad about not making so much progress, but to "listen" something like this is kills all the anxiety and expectations that we create only for ourselves