Skip to content
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 in code-sever docker. #2217

Closed
johnbritto1 opened this issue Oct 21, 2020 · 2 comments
Closed

Virtualenv interpreter not found in code-sever docker. #2217

johnbritto1 opened this issue Oct 21, 2020 · 2 comments

Comments

@johnbritto1
Copy link

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/odoo and requires python interpreter.
I have created virtualenv using cmd:
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/odoo/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,

@johnbritto1
Copy link
Author

johnbritto1 commented Oct 21, 2020

Closing this issue as i have posted here: linuxserver/docker-code-server#38

@skylarkprojects
Copy link

Hiya..

In the code-server terminal:

sudo apt-get update
sudo apt-get install libpython3-dev
sudo apt-get install python3-venv

worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants