I am using the professional version of P圜harm. I've switched to VSCode so thanks for trying to help but you can disregard this. Sorry for the delay - they were installed in the Dockerfile script. Have you tried this? You see Dockerfile example in the docker-compose tutorial.
You need to install them using Dockerfile script, and then build your own image. Most python containers you base your images off don't have any modules except the python built-ins. If you get ImportError, the environment inside the container don't have the required modules.
P圜harm uses it's own helper container for debugging and some connectivity assistance. Edit: I saw another place to enter Docker settings, so that might be the issue. If you think the docker-compose method is better, I'll post all my steps to get to where I am with that method. I got stuck with that method as well, but I'm willing to try whichever method is better. So I've also tried doing it with docker-compose. Is this correct? By the way, my overall goal is just to get P圜harm and my import all working in a docker container. So I don't know what my path mappings should look like. I went through the tutorial and that worked for me, but they don't mention path mappings. My guess is that my path mappings are not correct. Under Execution, I have check "Run with Python console". Why can't I access it in P圜harm? Here is my configuration.
But when I open a terminal and ssh into the container, I can see the file in the correct location, so I know it's there. Then I made it my Python interpreter in P圜harm. I've been through the tutorials but clearly I'm doing something wrong.
Code Completion Code completion action is not available.I am trying to get P圜harm working with my docker container and having issues. The PY files are associated with the text file format. Python code is not highlighted in the Editor. You have installed the IdeaVim plugin and thus enabled the vim editing mode. For more information about the supported Python versions, see Python Support.Ĭode Editing P圜harm Editor restricts code editing. The Python version of the marked interpreter is outdated and it is not supported in P圜harm You can delete the unsupported interpreter from the list of the available interpreters. Troubleshooting While working with P圜harm, you might encounter some warning or error messages. For more information about pip installation, refer to packaging. Click next to the Python Interpreter field and select Show All If the behavior of your application still differs, contact the support service pycharm-support jetbrains.įor example, the following command installs Flask compatible with the version 1.
You are experiencing different behavior of your application when running it in P圜harm and in the Terminal window.Ĭlick nearby the Python Interpreter field and select Show All The interpreter you use in your project will be selected in the list of the available interpreters.Ĭlick and copy the path from the Interpreter path field. In some cases, you might need to perform diagnostic steps to identify whether the problem occurs in P圜harm or in your working environment.īelow is the list of the useful tips and tricks. Repeat the configuration step in the Add Python interpreter dialog. Add the private keys to ssh-agent using the ssh-add command see more details at ssh. Consult product documentation for a specific package to ensure that it can be installed in your operating system and for the target Python interpreter.Īlso, check if any additional system requirements should be met. If pip is not available, install it for the required Python interpreter see the corresponding troubleshooting tip. Use your package manager to install header files and static libraries for Python dev system-wide. You can also find the recommendations for troubleshooting and performing basic diagnostics of your working environment. This chapter provides the list of the known problem solutions and workarounds. While working with P圜harm, you might encounter some warning or error messages.