Reputation: 153
I want to run python in PyCharm by using a Docker image, but also with a Conda environment that is set up in the Docker image. I've been able to set up Docker and (locally) set up Conda in PyCharm independently, but I'm stumped as to how to make all three work together.
The problem comes when I try to create a new project interpreter for the Conda environment inside the Docker image. When I try to enter the python interpreter path, it throws an error saying that the directory/path doesn't exist.
In short, the question is the same as the title: how can I set up PyCharm to run on a Conda environment inside a Docker image?
Upvotes: 7
Views: 2251
Reputation: 153
I'm not sure if this is the most eloquent solution, but I do have a solution to this now!
docker commit SOURCE_CONTAINER NEW_IMAGE
docker commit --help
for more options here/usr/local/conda3/envs/my_env/bin/python
)And just like that, you're good to go!
Upvotes: 5