#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    39
    Rep Power
    2

    Unhappy Trying To Install PIP So I Can Get Django


    Before I can Install PIP I need Easy Tools and this is where I'm meeting resistance. I downloaded the ez_setup.py and ran it in IDLE and I get this error message

    Traceback (most recent call last):
    File "C:\Python27\Scripts\ez_setup.py", line 370, in <module>
    sys.exit(main())
    SystemExit: 2

    I'm really new to this stuff and I need some help figuring this out.

    Thanks.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    16
    Rep Power
    0
    Have you tried running it in your terminal? Something like:

    python ez_setup.py
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    39
    Rep Power
    2
    Originally Posted by turvey
    Have you tried running it in your terminal? Something like:

    python ez_setup.py
    In the WIndows CMD or Python CMD?

    P.S. I'm wodering would this be a lot easier if I used Linux as my website server is APache?

    And isn't Python on Linux already?
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    16
    Rep Power
    0
    Windows CMD.

    Yes it is easier on Linux.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    39
    Rep Power
    2
    Originally Posted by turvey
    Windows CMD.

    Yes it is easier on Linux.
    Not working.

    I'm installing Linux Mint now.

    Do you think learning Linux, with all the Bash stuff you can do, make me better at Windows also?
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    16
    Rep Power
    0
    It will make you a better computer user. Yes. It will also show you how frustrating windows is for doing development work.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    39
    Rep Power
    2
    I have installed Ubuntu and I installed PiP but when I try to install Django with: pip install Django==1.3
    it downloads all the stuff, but at the end i get
    error: could not create '/usr/local/lib/python2.7/dist-packages/django': Permission denied

    I'm using the Administrator user(but it's not red), and when I try get the red name by using su and then entering the password I get a authenticate failure message.



    **Edit**

    OK. I have been googling a bit and I've found that if you are a normal user your terminal name ends with $. However if you're the root user (red name) your username ends with #.

    This is where I get confused. My username is the listed in user accounts as administrator, but when I use the the terminal it ends with $!
    Also another confusing thing happened when I typed root . It said root is not installed use yadda yaddda to install root. so I did. I found out I had installed some kind of C++ scripting language for data analysis . I didn't even know C++ scripting languages existed! So I looked at it a bit, then swiftly removed it!
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    16
    Rep Power
    0
    You want to do

    sudo pip install django==1.3

    It will prompt you for your password.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    39
    Rep Power
    2
    ok thanks. I did switched to Linux Mint and I'm able to switch between admin and regular user now. I installed Django no problem. It must have something I did wrong when I installed Ubuntu. Linux Mint is fine now.

IMN logo majestic logo threadwatch logo seochat tools logo