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 8900391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:05:28+00:00 2026-06-15T01:05:28+00:00

Can anyone tell me why i can’t run python using ./ but able to

  • 0

Can anyone tell me why i can’t run python using ./ but able to use python

-rwxr-xr-x@ 1 xxxx  staff   258 14 Nov 14:08 ltry.py
-rwxr-xr-x@ 1 xxxx  staff  1037 14 Nov 11:20 pdTry.py
 xxxx-MacBook-Pro:python xxxx$ ./ltry.py
 File "./ltry.py", line 10
 print "Hello you"
                 ^
 SyntaxError: invalid syntax
xxxx-MacBook-Pro:python xxxx$ python ltry.py
Hello you
['ltry.py']

Also, i installed python IDLE, but i wan’t able to try print, why?

Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> print 'eeere'
SyntaxError: invalid syntax
>>> print "helooe"
SyntaxError: invalid syntax
  • 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-15T01:05:29+00:00Added an answer on June 15, 2026 at 1:05 am

    For the second question, you are using Python 3.X there, where the syntax for printing was changed from the 2.X style you are using (print 'string' is print('string') in 3.X). My bet is that for the first question, you have 2 installations of Python on your machine, one 3.X, which is being called as the default program for .py files, and one 2.X, which is being called when you explicitly call python.

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

Sidebar

Related Questions

can anyone tell me how to select data by date in MS.ACCESS database using
Can anyone tell me, how to make shadow, using UIPageViewController, around of my background
Can anyone tell me where one should use javascript and where one should use
Can anyone tell me what's wrong in this code: #!/usr/local/bin/python import os import string,
Can anyone tell me why does this timer run only once? import java.awt.*; import
Can anyone tell me what the need/advantage is to using a web service with
Can anyone tell me how is ObjectIDGenerator better (worse?) then using HashSet when traversing
Can anyone tell me if this is a safe thing to do? I run
Can anyone tell me why this code would not be working? $('body').on('test', function() {
Can anyone tell me why the following code fails to submit the form into

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.