Visitar URL original
How to configure Winpython's python as interpreter ? · Issue #784 · microsoft/vscode-python · GitHub
Skip to content

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

Closed

Description

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

Activity

  1. DonJayamanne commented on Feb 15, 2018

    @DonJayamanne

    Mahdi Ben Jelloul (@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.

  2. benjello commented on Feb 15, 2018

    @benjello
    Author

    Don Jayamanne (@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.

  3. DonJayamanne commented on Feb 15, 2018

    @DonJayamanne

    Don Jayamanne (@DonJayamanne) : actually I looked on stackoverflow and found this.

    Have you tried that approach?

  4. benjello commented on Feb 15, 2018

    @benjello
    Author

    Don Jayamanne (@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.

  5. MikhailArkhipov commented on Feb 21, 2018

    @MikhailArkhipov

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

  6. benjello commented on Feb 21, 2018

    @benjello
    Author

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

  7. MikhailArkhipov commented on Feb 21, 2018

    @MikhailArkhipov

    Specifying absolute path to WinPython works for me

    image

    image

  8. MikhailArkhipov commented on Feb 21, 2018

    @MikhailArkhipov

    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

  9. 3 remaining items

  10. MikhailArkhipov commented on Feb 21, 2018

    @MikhailArkhipov

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

  11. brettcannon commented on Feb 21, 2018

    @brettcannon
    Member

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

  12. MikhailArkhipov commented on Feb 21, 2018

    @MikhailArkhipov

    Or we can rely on my answer on SO

  13. locked as resolved and limited conversation to collaborators on Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions