microsoft / vscode-remote-try-python

Python sample project for trying out Dev Containers
https://aka.ms/vscode-remote/containers/getting-started
MIT License
780 stars 1.63k forks source link

Unable to install ipykernel into this python environment #61

Open DonJayamanne opened 1 year ago

DonJayamanne commented 1 year ago

I've tried the following commands to install ipykernel into the python env and both fail

vscode ➜ /workspaces/xyz (main) $ /usr/local/bin/python -m pip install -U --user ipykernel
ERROR: Can not combine '--user' and '--target'
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
vscode ➜ /workspaces/xyz (main) $ /usr/local/bin/python -m pip install -U ipykernel 
Collecting ipykernel
  Downloading ipykernel-6.17.1-py3-none-any.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.6/138.6 kB 6.5 MB/s eta 0:00:00
Collecting jupyter-client>=6.1.12
  Downloading jupyter_client-7.4.8-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.5/133.5 kB 9.9 MB/s eta 0:00:00
Collecting psutil
  Downloading psutil-5.9.4.tar.gz (485 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 485.8/485.8 kB 11.4 MB/s eta 0:00:00
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Collecting setuptools>=43
        Downloading setuptools-65.6.3-py3-none-any.whl (1.2 MB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 11.2 MB/s eta 0:00:00
      Collecting wheel
        Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
      Installing collected packages: wheel, setuptools
      ERROR: Cannot set --home and --prefix together
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
DonJayamanne commented 1 year ago

Thus anyone using this template for Jupyter or possibly even using for regular python and installing packages could run into issues.

amberkushwaha commented 1 year ago

mentioned this issue previously do try the outlet and data crypt in file.still if doesn't work do forward the file to the it team.