forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Milestone
Description
- Create a conda environment for Python 2.7
- Select an interpreter from the command palette (Python Extension functionality)
The version info displayed for Python 2.7 env is incorrect. We're displaying the display name of the root environment.
Currently we're using the python_version
from the json returned in conda info --json
and this is incorrect.
The solution would be to just invoke --version
to get the version off the interpreter.
{
"GID": 20,
"UID": 501,
"channels": [
"https://repo.continuum.io/pkgs/main/osx-64",
"https://repo.continuum.io/pkgs/main/noarch",
"https://repo.continuum.io/pkgs/free/osx-64",
"https://repo.continuum.io/pkgs/free/noarch",
"https://repo.continuum.io/pkgs/r/osx-64",
"https://repo.continuum.io/pkgs/r/noarch",
"https://repo.continuum.io/pkgs/pro/osx-64",
"https://repo.continuum.io/pkgs/pro/noarch"
],
"conda_build_version": "3.0.22",
"conda_env_version": "4.3.27",
"conda_location": "/Users/donjayamanne/anaconda3/lib/python3.6/site-packages/conda",
"conda_prefix": "/Users/donjayamanne/anaconda3",
"conda_private": false,
"conda_version": "4.3.27",
"default_prefix": "/Users/donjayamanne/anaconda3/envs/py27",
"env_vars": {
"CIO_TEST": "<not set>",
"CONDA_DEFAULT_ENV": "py27",
"CONDA_ENVS_PATH": "<not set>",
"DYLD_LIBRARY_PATH": "<not set>",
"PATH": "/Users/donjayamanne/anaconda3/envs/py27/bin:/Users/donjayamanne/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/donjayamanne/.nvm/versions/node/v8.9.1/bin:/Users/donjayamanne/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"PYTHONHOME": "<not set>",
"PYTHONPATH": "<not set>"
},
"envs": [
"/Users/donjayamanne/anaconda3/envs/one",
"/Users/donjayamanne/anaconda3/envs/py27",
"/Users/donjayamanne/anaconda3/envs/py36",
"/Users/donjayamanne/anaconda3/envs/three"
],
"envs_dirs": [
"/Users/donjayamanne/anaconda3/envs",
"/Users/donjayamanne/.conda/envs"
],
"netrc_file": null,
"offline": false,
"pkgs_dirs": [
"/Users/donjayamanne/anaconda3/pkgs",
"/Users/donjayamanne/.conda/pkgs"
],
"platform": "osx-64",
"python_version": "3.6.2.final.0",
"rc_path": null,
"requests_version": "2.18.4",
"root_prefix": "/Users/donjayamanne/anaconda3",
"root_writable": true,
"site_dirs": [],
"sys.executable": "/Users/donjayamanne/anaconda3/bin/python",
"sys.prefix": "/Users/donjayamanne/anaconda3",
"sys.version": "3.6.2 |Anaconda, Inc.| (default, Sep 21 2017, 18:29:43) \n[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]",
"sys_rc_path": "/Users/donjayamanne/anaconda3/.condarc",
"user_agent": "conda/4.3.27 requests/2.18.4 CPython/3.6.2 Darwin/17.2.0 OSX/10.13.1",
"user_rc_path": "/Users/donjayamanne/.condarc"
}
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug