我了解以下docker服务器启动使我可以访问jupyter笔记本
docker pull tensorflow/tensorflow:latest-py3 # Download latest stable image
docker run -it -p 8888:8888 tensorflow/tensorflow:latest-py3-jupyter # Start Jupyter server
我的问题是如何更改pycharm内部的解释器以使用它?
答案 0 :(得分:0)
将pycharm附加到tensorflow / tensorflow:latest-py3图像应该很简单
Go to File ->
Settings ->
Project ->
Select interpreter ->
Click the Gear ->
Add ->
Select Docker ->
Create a unix Socket
Choose tensorflow/tensorflow:latest-py3 as Image name and your might need to edit the Python interpreter path based on the image.
要获取python路径,您将需要通过以下步骤来安装shell或bash:
docker exec -it container_name sh
docker exec -it container_name bash
要获取容器名称,可以使用
docker container ls -a
最后一次重击可能会起作用
python -c "import sys; print(sys.path)"