Ubuntu Virtualbox中的Pycharm中的Python控制台无法连接
我使用Aldryns环境来开发django-cms站点。Ubuntu Virtualbox中的Pycharm中的Python控制台无法连接
我在Windows 10上,这是不完美的,所以我创建了一个虚拟机Ubuntu 16.04与Virtualbox。在VM中,我安装了Pycharm 2016.1.3。
Aldryn支持(谁是不知疲倦的)帮助我的Ubuntu和Pycharm setup docker支持:
just create a file
/etc/default/docker
containing:DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:2376"
Drop the following into
/etc/systemd/system/docker.service.d/daemon.conf
(create directories if they don't exist yet):
[Service] EnvironmentFile=/etc/default/docker ExecStart= ExecStart=/usr/bin/docker daemon $DOCKER_OPTS
Then issue the following two commands:
sudo systemctl daemon-reload sudo systemctl restart docker
现在Pycharm能够泊坞窗容器内看到。 也就是说项目解释器很好地显示了所有已安装的软件包。
我做了所有这些,所以我可以使用Pycharm的python控制台。
(错误:尚不支持Windows交互模式。)
现在我得到这个错误:
xyz_w:python /opt/.pycharm_helpers/pydev/pydevconsole.py 0 0
PyDev console: starting.
Couldn't connect to console process.
Process finished with exit code 143
通过终端播放它给:
[email protected]:~/xyz$ docker-compose run --rm web python manage.py shell
/app/addons/aldryn-django/aldryn_config.py:56:
RuntimeWarning:
no cache configured. Falling back to CACHE_URL=locmem://
RuntimeWarning,Django not found.
Python 2.7.11 (default, Mar 3 2016, 10:57:12) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)
我该如何解决这个问题,以便我能够使用python控制台?
卸载docker集成插件来获取PyCharm的捆绑版本。 (请确保您有一个新的版本Pycharm)
来源: https://youtrack.jetbrains.com/issue/PY-18853#comment=27-1362538