Configuring a remote Python interpreter in PyCharm | PyCharm Tutorial

preview_player
Показать описание
This is the Getting Started Series, with Paul Everitt.

In this episode, you will learn how to create remote Python interpreters in PyCharm Pro using SSH, Docker, Docker Compose, and WSL.

0:00 - Intro
2:39 - SSH
5:21 - Docker
8:04 - Docker Compose
12:04 - WSL
13:49 - Wrap up

Links:

Documentation:

Рекомендации по теме
Комментарии
Автор

I use PyCharm 2023.1.2 (Professional Edition) and it doesn't work like this. The interface is different and it's not run in container...

Smiesznosyn
Автор

Hi Paul. I've got a remote interpreter setup for Docker Compose and I can run my FastAPI app as well as debug it. However, in my source code I've still got "red squiggles" under modules and basic things like str, dict, etc. What am I missing to resolve that?
Thanks!
Doug

dougkfarrell
Автор

Is there a way to use SSH and select an interpreter installed via conda on the remote machine?

renatoprisco
Автор

By the way, this is SUPER helpful video!

dougkfarrell
Автор

Can you also show me how to set up a remote interpreter for a Docker Compose system that runs a FastAPI container and a DB container that can be debugged with breakpoints?

dougkfarrell
Автор

TYhis is PyCharm Pro only, right? The community version doesn't have this?
How about DataSpell? Does DataSpell have this feature?

cyberpunk
Автор

I'm assuming this is the paid version as the free version doesn't have these options. Instead of the gear icon it merely has "Local Interpreter'. Whereas VSCode can actually do remote editing and execution.

carlfranz
Автор

There a way to debug a docker container running in a remote docker?

zalmangoldstein
Автор

how do I stop the pod? under manage, I see the pod running but I can only terminate it. I can not stop it. Do you know any solution for this?

mehmetbakideniz
Автор

I am using the docker interpreter. Every time I rerun my code, it initializes a new container. Is there any way to reuse a container without creating a new one?

tinnguyencong
Автор

All I get is unsupported interpreter :( :( :( And for some reason I cant select select a python virtual environment. Only the system interpreter. I know the requirements are not the same in the container as they are in the my requirements list . My guess is thats the issue...

ybmnziz
Автор

hey people, at 13:34 in my python i do not have wsl.exe visible when I check for shell path`s how can I fix it anyone can help me ?

beratcan
Автор

How can i run the code inside an existing container without creating a new one?

simonec
Автор

Do you plan update in 2022? Or 2021.x stays whole year?

StanislavVasko
Автор

All i get with docker compose is freaking me out "python: can't open file [Errno 2] No such file or directory" and nothing more!

Tony_Sol
Автор

Paul, when I successfully create my remote SSH interpreter, every time I start Pycharm it wants to create a helper directory on my remote server's /tmp directory to the tune of 2GB !! Is there anyway to stop this?

timboehm
Автор

Hey, but I dont see SSH interpreter option...
All I can see are below options in Add Python Interpreter ...
1) Virtua Env
2) Conda Env
3) Sys Inter
4) Pipenv Envi
6) Poetry Env

jhodjlc
Автор

docker and docker-compose still so raw, issue on their tracker from 2022 with debug problems and nobody cares ;/

herypank
Автор

Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. I cant migrate

bubbel
Автор

debuger is not working...,

/usr/local/bin/python3 --multiprocess --qt-support=auto --client host.docker.internal --port 36171 --file /opt/project/Solver.py

pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)
pydev debugger: The debugger may still function, but it will work slower and may miss breakpoints.

Could not connect to host.docker.internal: 36171
Traceback (most recent call last):
File "/opt/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 463, in start_client
s.connect((host, port))
socket.gaierror: [Errno -2] Name or service not known
Could not connect to host.docker.internal: 36171
Traceback (most recent call last):
File "/opt/.pycharm_helpers/pydev/pydevd.py", line 2168, in main
debugger.connect(host, port)
File "/opt/.pycharm_helpers/pydev/pydevd.py", line 660, in connect
s = start_client(host, port)

File "/opt/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 463, in start_client
s.connect((host, port))
socket.gaierror: [Errno -2] Name or service not known

yujunhuang
join shbcf.ru