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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:41:35+00:00 2026-06-04T05:41:35+00:00

I am trying to compile PythonQt using Qt creator but it return me 163

  • 0

I am trying to compile PythonQt using Qt creator but it return me 163 errors.

C:\Users\Kato\Desktop\Qt projects\PythonQt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug\src….\PythonQt2.0.1\src\PythonQtStdDecorators.h:46: error: Python.h: No such file or directory

and such other directories.

I have python 3.2 installed and I have changed prf file to be:

# profile to include and link Python

# Change this variable to your python version (2.5, 2.6)
win32:PYTHON_VERSION=32
unix:PYTHON_VERSION=2.6

macx {
# for macx you need to have the Python development kit installed as framework
INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
LIBS += -F/System/Library/Frameworks -framework Python
} else:win32 {
# for windows install a Python development kit or build Python yourself from the sources
# Make sure that you set the environment variable PYTHON_PATH to point to your
# python installation (or the python sources/header files when building from source).
# Make sure that you set the environment variable PYTHON_LIB to point to
# the directory where the python libs are located.
#
# When using the prebuild Python installer, this will be:
# set PYTHON_PATH = c:\Python26
# set PYTHON_LIB  = c:\Python26\libs
PYTHON_PATH= C:\Python32
PYTHON_LIB= C:\Python32\libs
#
# When using the python sources, this will be something like:
# set PYTHON_PATH = c:\yourDir\Python-2.6.1\
# set PYTHON_LIB  = c:\yourDir\Python-2.6.1\PCbuild8\Win32

# check if debug or release
CONFIG(debug, debug|release) {
  DEBUG_EXT = _d 
} else {
  DEBUG_EXT = 
}

win32:INCLUDEPATH += $(PYTHON_PATH)/PC $(PYTHON_PATH)/include
win32:LIBS += $(PYTHON_LIB)/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib

} else:unix {
# on linux, python-config is used to autodetect Python.
# make sure that you have installed a matching python-dev package.

unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
}

according to this build link I am right
but same errors !!
I don’t know what is the problem
thank you 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-04T05:41:37+00:00Added an answer on June 4, 2026 at 5:41 am

    The page about building it says it hasn’t been tested with Python3 and that some changes may be required. That’s almost certainly the problem you’re seeing.

    To find out for sure, try again with Python 2.6 or 2.7. If the build works, then the 163 errors are probably due to Python2/Python3 compatibility changes.

    If you have to use Python3 then your only option will be to fix the errors. Otherwise it’s probably easier to just use Python 2.7.

    If you decide to fix the Python3 build problems, it’d be nice if you submitted a patch 🙂

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

Sidebar

Related Questions

Im trying to compile but im getting these errors: 1>.\item.cpp(123) : warning C4800: 'int'
I'm trying to compile fastboot for Android using this guide , but I'm getting
While trying to compile a 64 bit linux kernel using gcc, I see the
I'm trying to compile using a compiled Boost libs. I can compile using header-only
Iam trying to compile rtmpd using VS2008 Iam getting this error. Error 63 error
When trying to compile the following: #include <string> #include <iterator> #include <iostream> using namespace
I am trying to compile a simple C Windows API program using the Windows
I am trying to compile my source code into a library but i get
Trying to compile a project using the Newtonsoft.Json.WindowsPhone reference and I am gettign 2
Trying to compile a Web Project here but I keep on getting package does

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.