Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8856699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:24:51+00:00 2026-06-14T14:24:51+00:00

I am learning python from learnpythonthehardway. in the windows I had no issues with

  • 0

I am learning python from learnpythonthehardway. in the windows I had no issues with going through a lots of exercises because the setup was easier but I want to learn linux as well and ubuntu seemed to me the nicest choice.

now I am having trouble with setting up. I can get access to the terminal and then usr/lib/python.2.7 but I don’t know if to save the script in this directory? if I try to make a directory inside this through mkdir I can’t as permission is denied. I also tried to do chmod but didn’t know how or if to do it.

any help regarding how to save my script in what libary? how to do that? and how to run it in terminal as: user@user$ python sampleexcercise.py

using ubuntu 12.04 lts
skill = newbie

thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:24:52+00:00Added an answer on June 14, 2026 at 2:24 pm

    As an absolute beginner, don’t worry right now about where to install libraries. Simple example scripts that you’re trying out for learning purposes don’t belong being installed in any lib directory such as under /usr/lib/python.’

    On Linux you want to do most work in your home directory, so just cd ~ to make sure you’re there and create files there with an editor of your choice. You might want to organize your files hierarchically too. For example create a directory called src/ using the mkdir command in your home directory. And and then mdkir src/lpthw, for example, as a place to store all your samples from “Learn Python the Hard Way”. Then simply fun python <path/to/py/file> to execute the script. Or you can cd ~/src/lpthw and run your scripts by filename only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been here for a couple of months learning python from examples, but
I'm learning Python and trying to test some rest web_service applications. From the below
I learning Python (coming from a dotnet background) and developing an app which interacts
I've been learning Python for several months but now finding some problems with my
I am learning Python by building a simple PyGTK application that fetches data from
I'm learning Python from a book, and I came across this example: M =
I'm learning Python from a book and came across this example: >>> '%f, %.2f,
I think I'm gonna start learning Python web development from scratch. So if someone
I'm learning Python with the tutorial app from Flask and I can't figure how
learning python, coming from a php background. Keeping it short. Is there a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.