Cross-compile with 3. I've run into this issue trying to cross-compile python for Android. I've tried 3. I think the working directory is incorrect at some stage - note that the first two -I would make sense from Modules, but the next three do not. So it's picking the wrong source directory. I replaced the second line of the function above with: self. I see so many values in there that are taken from the running interpreter sys. Since we need something else for cross-compiling, we should either fix sysconfig so that it's possible to override the source of information reliably, or we avoid using it completely for building the CPython extension modules.
The former would likely help third-party cross-compilation more. I'm not sure who needs to be in on this, so I'll post to python-dev before going any further. But setup. It didn't work for me for some reason was trying to launch the built Python, not the host.
Need to get back on my work machine to check. I can only suspect that it was a factor in all the earlier reports too. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Error building OpenCV: can not find 'stdlib. Asked 5 years, 4 months ago. Active 5 years, 4 months ago. Viewed 1k times. Has anyone experienced the same error?
Improve this question. See the discussion here for multiple versions of compiler: stackoverflow. Add a comment. Active Oldest Votes. When I tried to set up the interpreter this time, specified this path and it went right through. Sometimes the 'python' link doesn't exist to the current interpreter say, python3.
Improve this answer. Mike Samuel k 30 30 gold badges silver badges bronze badges. For Mac newbies like me, maybe it is useful to point out that there is a Library folder in two places 1 As jgtaylor points out, the one under root or 'Macintosh HD' 2 The one under System where I mistakenly was trying to get it working — RAbraham.
This stumped me this morning. Thanks for the quick fix! Artjom B. Praveen Gollakota Praveen Gollakota Community Bot 1 1 1 silver badge. Evin Levey Evin Levey 41 1 1 bronze badge. I too had the error: stdlib sources not found. My fix was to install XCode 4.
No error. PyDev running OK! Verohomie Verohomie 1 1 silver badge 8 8 bronze badges. Adam V. I have Xcode 4 installed but I still get the error described in the original question.
Can you specify which version of Xcode you used? I'm not even totally up to date. I'm using 3. Name it "Python2. Mike Mike 21 3 3 bronze badges. Andreas Covidiot Andreas Covidiot 3, 5 5 gold badges 45 45 silver badges 85 85 bronze badges. Shu Low Shu Low 11 1 1 bronze badge. John John 1. Your answer could be improved with additional supporting information.
0コメント