Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WinPython-3.6.0.1-Qt5 does not see PYTHONPATH or module in cwd #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonaslindemann opened this issue Mar 1, 2017 · 4 comments
Closed

Comments

@jonaslindemann
Copy link

It seems the 3.6 version of WinPython has something issues regaring Python paths. Adding a path in the Path manager in Spyder has no effect. Setting the PYTHONPATH at the command line also has no effect. WinPython 3.5.3 works as expected.

@stonebig
Copy link
Contributor

stonebig commented Mar 3, 2017

try to rename "..\python-3.6.0.amd64\python._pth" as "..\python-3.6.0.amd64\zpython._pth".

then tell me if it solves your problem

@slomp
Copy link

slomp commented Mar 7, 2017

Hi there,

I ran into a similar problem with WinPython-3.6.0.1Zero, where python was unable to import local modules.

I can attest that, by following your suggestion, the problem disappeared.

In case someone else runs into the same problem, I would like to reemphasize your answer by stating that one must rename the file; keeping the old python._pth around won't work.

@stonebig
Copy link
Contributor

stonebig commented Mar 8, 2017

there is a thread about the python._pth here: https://bugs.python.org/issue29723

current 3.6.1 beta creates a file "zpython._pth" at the moment, as it's not 100% clear to me what is the best solution when there will be no more bug from python.org point of view.

the "python._pth" idea was apparently valid for winpython up to python-3.6.0beta4 https://bugs.python.org/issue29319

@jonaslindemann
Copy link
Author

I can also confirm that the renaming works. in 3.6.0.1-Qt5.

@stonebig stonebig closed this as completed May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants