使用 pycharm 远程运行server 上代码
需要在服务器上调试程序。参考使用PyCharm进行远程开发和调试,结果在增加远程 python 环境的时候,配置的 ssh deplotment一直报错。project level deployment servers are not currently supported. please create one of two links above.暂时还没有解决,先用 ssh 连接着。添
·
需要在服务器上调试程序。
参考使用PyCharm进行远程开发和调试,
结果在增加远程 python 环境的时候,配置的 ssh deplotment一直报错。
project level deployment servers are not currently supported. please create one of two links above.
暂时还没有解决,先用 ssh 连接着。
添加远程环境之后, 可以正常运行,但是调试的时候会报错。
import torch
File"/data1/public/research_venv/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 53, in <module>
from torch._C import *
ImportError: dlopen: cannot load any more object with static TLS
相关 github issue 为Debian 8.9 (Jessie) + Anaconda Python fail to load pytorch binaries #2575.
- 尝试将
import torch移到首行,失败 - 尝试失败
If it happens only in debug in Pycharm, you can solve this by adding 'import torch' in the beginning of <Pycharm_dir>/helpers/pydev/pydevd.py
- +
更多推荐



所有评论(0)