-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Virtualenv interpreter not found #38
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Install the python3 mod. The image comes with only a minimal python install necessary to set up the main app. For all extra packages and environments, use the mods: https://github.com/linuxserver/docker-code-server#docker-mods |
Redeployed the code-server with -e DOCKER_MODS=linuxserver/mods:code-server-python3 but the same issue. |
Tested the workspace by running code-server in the host using systemd. Code-server auto-detect venv, activate the venv in the terminal, and select the right interpreter. The purpose of choosing to run via docker is because I don't want to give access to the Host terminal and restrict the user to app directory. |
I fixed my issue. Virtualenv created using --copies on Ubuntu 20.04 isn't compatible when we mount the venv folder to the docker-code-server. I have to create virtualenv in ubuntu 18.04. Thanks. |
Hiya.. In the code-server terminal: sudo apt-get update worked for me |
Web Browser: chrome
Local OS: Linux Mint
Remote OS:
Remote Architecture: x64
code-server --version: https://hub.docker.com/r/linuxserver/code-server
Hello,
I have deployed the current code server using docker
docker run -d
--name=code-server
-e PUID=1000
-e PGID=1000
-e TZ=Europe/London
-e PASSWORD=sode1234
-p 8443:8443
-v /opt/coder-docker/config:/config
-*v /opt/app:/opt/app *
--restart unless-stopped
linuxserver/code-server
My application is in /opt/app and requires python interpreter.
I have created virtualenv using cmd below, such that i could mount this to code-server and work:
virtualenv -p /usr/bin/python3.7 --no-site-packages --always-copy /opt/app/my-app/venv
In code-server, I have added workspace folder /opt/app/my-app.
Created a python lauch.json, and selected the python interpreter to be added in settings.json.
{
"python.pythonPath": "/opt/app/my-app/venv/bin/python"
}
Code-server keep prompting "unable to find python interpreter".
What is wrong here?
Thanks,
The text was updated successfully, but these errors were encountered: