Skip to content

Unable to access Python 3 environments in /anaconda2 #7548

Closed
@juliussimonelli

Description

@juliussimonelli

Issue Type: Bug

When I try to select a Python interpreter, only the Python 2 environments are appearing. I created a python 3 environment in anaconda but it is not showing up as a Python interpreter in VSCode.

When I look at my conda environments, I see:

$ conda env list
# conda environments:
#
base                     /anaconda2
python3               *  /anaconda2/envs/python3
sk                       /anaconda2/envs/sk

But when I try to select an interpreter only base, sk, and other (non conda) interpreters appear. I went into my settings.json and added:

{
    "python.pythonPath": "/anaconda2/envs/python3",
    "python.condaPath": "/anaconda2/envs/python3"
}

but the bottom left still says "Select Python Interpreter" and I cannot run the code. Restarting it did not help. Note that outside of VSCode I can run the python 3 environment and it works.

Here is the output of conda info --json

{
  "GID": 20,
  "UID": 501,
  "active_prefix": "/anaconda2/envs/python3",
  "active_prefix_name": "python3",
  "channels": [
    "https://repo.anaconda.com/pkgs/main/osx-64",
    "https://repo.anaconda.com/pkgs/main/noarch",
    "https://repo.anaconda.com/pkgs/r/osx-64",
    "https://repo.anaconda.com/pkgs/r/noarch"
  ],
  "conda_build_version": "3.18.9",
  "conda_env_version": "4.7.11",
  "conda_location": "/anaconda2/lib/python2.7/site-packages/conda",
  "conda_prefix": "/anaconda2",
  "conda_private": false,
  "conda_shlvl": 2,
  "conda_version": "4.7.11",
  "config_files": [
    "/Users/juliussimonelli/.condarc"
  ],
  "default_prefix": "/anaconda2/envs/python3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_DEFAULT_ENV": "python3",
    "CONDA_EXE": "/anaconda2/bin/conda",
    "CONDA_PREFIX": "/anaconda2/envs/python3",
    "CONDA_PREFIX_1": "/anaconda2",
    "CONDA_PROMPT_MODIFIER": "(python3) ",
    "CONDA_PYTHONBREAKPOINT": "",
    "CONDA_PYTHON_EXE": "/anaconda2/bin/python",
    "CONDA_ROOT": "/anaconda2",
    "CONDA_SHLVL": "2",
    "PATH": "/anaconda2/bin:/anaconda3/bin:/anaconda2/envs/python3/bin:/anaconda2/condabin:/Users/juliussimonelli/anaconda2/bin:/Users/juliussimonelli/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/juliussimonelli/.local/bin",
    "PYTHONPATH": "/Library/Python/2.7/site-packages:/Users/juliussimonelli/orbital/base/core/oicv/src/py:/Users/juliussimonelli/orbital/base/core/chameleon_client/src/py:/Users/juliussimonelli/orbital/base/core/catalog_client/src/py:/Users/juliussimonelli/orbital/base/core/oil/src/py:/Users/juliussimonelli/orbital/base/core/retail/src/py:/Users/juliussimonelli/orbital/base/core/iqt:/Users/juliussimonelli/orbital/base/core/sandbox:/Users/juliussimonelli/orbital/base/core/services/src/py:/Users/juliussimonelli/orbital/base/core/projects:/Users/juliussimonelli/orbital/base/core/OFL/src/py::/Users/juliussimonelli/orbital/base/ops/tools/libs/python-common/",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "S3_ASTRIUM_REQUEST_PATH": "astrium/request",
    "S3_CHINACON_INGESTION_PATH": "china",
    "S3_IQT_INGESTION_PATH": "iqt",
    "S3_OIL_INGESTION_PATH": "oil",
    "S3_REQUEST_PATH": "aether/requests",
    "S3_RETAIL_INGESTION_PATH": "retail",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/anaconda2",
    "/anaconda2/envs/python3",
    "/anaconda2/envs/sk"
  ],
  "envs_dirs": [
    "/anaconda2/envs",
    "/Users/juliussimonelli/.conda/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/anaconda2/pkgs",
    "/Users/juliussimonelli/.conda/pkgs"
  ],
  "platform": "osx-64",
  "python_version": "2.7.16.final.0",
  "rc_path": "/Users/juliussimonelli/.condarc",
  "requests_version": "2.21.0",
  "root_prefix": "/anaconda2",
  "root_writable": true,
  "site_dirs": [
    "~/.local/lib/python2.7"
  ],
  "sys.executable": "/anaconda2/bin/python",
  "sys.prefix": "/anaconda2",
  "sys.version": "2.7.16 |Anaconda, Inc.| (default, Aug 22 2019, 10:59:10) \n[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]",
  "sys_rc_path": "/anaconda2/.condarc",
  "user_agent": "conda/4.7.11 requests/2.21.0 CPython/2.7.16 Darwin/18.7.0 OSX/10.14.6",
  "user_rc_path": "/Users/juliussimonelli/.condarc",
  "virtual_pkgs": []
}

Extension version: 2019.9.34911
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:31:32.854Z)
OS version: Darwin x64 18.7.0
Remote OS version: Linux x64 3.10.0-957.5.1.el7.x86_64

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz (8 x 2700)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 3, 5, 5
Memory (System) 16.00GB (0.11GB free)
Process Argv -psn_0_2728602
Screen Reader no
VM 0%
Item Value
Remote SSH: localhost
OS Linux x64 3.10.0-957.5.1.el7.x86_64
CPUs Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz (4 x 2699)
Memory (System) 59.81GB (3.36GB free)
VM 0%

Metadata

Metadata

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions