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

  • SEARCH
  • Home
  • 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 3331252
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:34:01+00:00 2026-05-17T23:34:01+00:00

I am trying to install python on windows, and this is my first day

  • 0

I am trying to install python on windows, and this is my first day on python. Install goes well on windows 7 x64. But almost all scripts fails. I am trying to install celery and running following command on celery folder.

python setup.py build

and it fails, following is an error

  File "setup.py", line 40
except ImportError, exc:
                      ^
SyntaxError: invalid syntax

also following fails, which is valid print command i think.

>>> print 'a'
  File "<stdin>", line 1
    print 'a'
            ^
SyntaxError: invalid syntax

I am sure i am missing something here. Any idea what makes it fail?

Edit:
Below is summary of tasks i had to go through to get python working, made notes for myself but putting it here as well if it can help anyone

Install python and celery
=========================
-celery does not work with python3, so install latest python2
-install windows install for python2
-add C:\python2X to %PATH%
-set python path for lib
        set PYTHONPATH=%PYTHONPATH%;c:\python2x
-install setuptools
    http://pypi.python.org/pypi/setuptools
    for x64 install does not work use
        python setup.py install
-then can use easy_install
-now just use easy_install to install everything
  • 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-05-17T23:34:02+00:00Added an answer on May 17, 2026 at 11:34 pm

    A likely cause is version incompatibility, as Vincent Savard pointed out. Python 3 is not backwards compatible with Python 2
    if print 1 doesn’t work, but print(1) does, then you are running python 3, which seems to be the case

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

Sidebar

Related Questions

I'm trying to install Laconica , an open-source Microblogging application on my Windows development
I'm trying to install a service using InstallUtil.exe but invoked through Process.Start . Here's
Trying to install the RMagick gem is failing with an error about being unable
I'm trying to install a .NET service I wrote. As recommended by MSDN, I'm
I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.
I'm trying to install some Ruby Gems so I can use Ruby to notify
I am trying to install the ibm_db gem so that I can access DB2
I'm trying to install GODI on linux (Ubuntu). It's a library management tool for
I am trying to install newgem on my linux box (sudo gem install newgem)
I am trying to install PHP onto my development box (XP SP3 / IIS

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.