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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:55:36+00:00 2026-06-13T18:55:36+00:00

I have a very simple cython code which use prange , which works fine

  • 0

I have a very simple cython code which use prange, which works fine in linux. However, when I try to do it in Windows. I encountered a problem that it can be compiled but cannot be imported:

ImportError: DLL load failed: This application has failed to start because the a
pplication configuration is incorrect. Reinstalling the application may fix this
problem.

Moreover, in windows I cannot from cython.parallel import threadlocal?! strange…

Is there anyone can point a direction?

System works fine: linux64, compiler gcc, packages: Python 2.7, cython 0.16

system has problem: Win64, compiler: MSVC VS2008, packages: Python 2.7, cython 0.16

Here is my simple cython pyx:

cimport cython
from cython.parallel import prange

def f(int n):
    cdef int i
    cdef int sum = 0
    for i in prange(n, nogil=True):
        sum += i
    print sum

Here is my setup.py:

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np


setup(
    cmdclass = {'build_ext': build_ext},
    include_dirs = [np.get_include()], 
    ext_modules = [Extension("pcython1",  ["pcython1.pyx"],extra_compile_args=['/openmp',],),]
)
  • 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-13T18:55:38+00:00Added an answer on June 13, 2026 at 6:55 pm

    Due to the VS2008 installer bug, the amd64_microsoft.vc90.openMP does not get installed into winSxS. Installing the openMP runtime will solve this problem.

    see this question for detail: How to properly setup VS2008 for x64 programing?

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

Sidebar

Related Questions

I have very simple piece of code. The goal is when i input four-digit
I have a very simple table called Member , which consists of the following:
I have a very simple highcharts js chart, which has dates on x-axis and
I have written very very simple console application which supports some command line options.
I have very simple code and I am not sure why the Foo function
I have very simple code: List<String> list = new ArrayList<String>(); String a = a;
I have very simple query that calls a UDF which splits a field by
I have very simple html page with js code: <html> <head> <title></title> </head> <body>
I have very simple html and js files - which I've included below. What
I have very simple method that is being called by performSelector:withObject:afterDelay: however no matter

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.