首页 > 解决方案 > 绑定端口/接口的问题

问题描述

重新安装用于托管基于 Web 的实验 (psiturk) 并在 python 上运行的包后,我遇到了将端口绑定到接口的问题,导致服务器被阻止。我尝试使用不同的端口,它们都立即被阻止。尝试启动服务器时,它给了我以下警告(没有其他错误消息或服务器日志):

Now serving on http://localhost:22363 /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used return io.open(fd, *args, **kwargs)

这可能与mac安全问题有关吗?还是安装出了问题(我在多个 python 版本中遇到了一些问题)?

更多信息:最近更新为 bigsur,psiturk 在 python 3.8 上运行

标签: pythonpython-3.xmacos-big-sur

解决方案


推荐阅读