Skip to content
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

How to configure Winpython's python as interpreter ? #784

Closed
benjello opened this issue Feb 14, 2018 · 11 comments
Closed

How to configure Winpython's python as interpreter ? #784

benjello opened this issue Feb 14, 2018 · 11 comments
Assignees
Labels
feature-request Request for new features or functionality good first issue

Comments

@benjello
Copy link

Environment data

VS Code version: 1.19.0
Python Extension version: 0.9.1
Python Version: 2.7
OS and version: Windows Server 2012 R2

Actual behavior

Not able to use go to definition with python mode.
Is there a particular way to configure Winpython's python as the python interpreter ?

Expected behavior

F12 yields to the definition of the object

Steps to reproduce:

  • Open a python file
  • Cursor on some variable
  • Press F12
@DonJayamanne
Copy link

DonJayamanne commented Feb 15, 2018

@benjello
I haven't tried this myself. However this is a great question for stack overflow. Hopefully someone can help you there.
My suggestion is to first check on stackoverflow, if that doesn't work out, please do come back and ping us.

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster feature-request Request for new features or functionality feature-extension labels Feb 15, 2018
@benjello
Copy link
Author

@DonJayamanne : actually I looked on stackoverflow and found this.

I am using a remote windows machine which I do not have control. I asked for vscode and python and they provided me with WinPython and I would really appreciate to work as I used to with the marvelous vscode python mode.

@DonJayamanne
Copy link

@DonJayamanne : actually I looked on stackoverflow and found this.

Have you tried that approach?

@benjello
Copy link
Author

benjello commented Feb 15, 2018

@DonJayamanne : I did set python.pythonPath to point to the installed python without success.
My read of the SO answer is that vscode doesn't work with winPython.
But I am not a native english speaker so I may misunderstood the answer.

@MikhailArkhipov
Copy link

Have you tried Anaconda? https://www.anaconda.com/

@benjello
Copy link
Author

I do not have control on the python distribution since I work on a remote env that i cannot change

@MikhailArkhipov
Copy link

Specifying absolute path to WinPython works for me

image

image

@microsoft microsoft deleted a comment from benjello Feb 21, 2018
@microsoft microsoft deleted a comment from benjello Feb 21, 2018
@microsoft microsoft deleted a comment from benjello Feb 21, 2018
@MikhailArkhipov
Copy link

MikhailArkhipov commented Feb 21, 2018

Since WinPython is not registered anywhere we can't detect it and you have to set path to it manually. Now, if you DO register it via WinPython Control Panel applet, VSC will see it

image

@MikhailArkhipov MikhailArkhipov added closed-question and removed info-needed Issue requires more information from poster feature-request Request for new features or functionality labels Feb 21, 2018
@MikhailArkhipov
Copy link

@brettcannon - perhaps we should add this to docs? Might be useful in the future. Thanks

@brettcannon brettcannon added the feature-request Request for new features or functionality label Feb 21, 2018
@brettcannon
Copy link
Member

I'm not sure if WinPython is used widely enough to necessarily warrant an explicit mention, but maybe.

@MikhailArkhipov
Copy link

Or we can rely on my answer on SO

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality good first issue
Projects
None yet
Development

No branches or pull requests

4 participants