我不熟悉Python和PyCharm。我设法安装了程序包reprexpy
(请参阅说明here),但运行它时出现以下错误:
from reprexpy import reprex
reprex()
Rendering reprex...
Traceback (most recent call last):
(...)
packages\zmq\asyncio.py", line 56, in _init_io_state
self.io_loop.add_reader(self._fd, lambda: self._handle_events(0, 0))
File "C:\Users\Serena\anaconda3\envs\python prep\lib\asyncio\events.py", line 504, in add_reader
raise NotImplementedError
NotImplementedError
我真的很想这样做,这样我就可以用Python创建可复制的示例。我正在PyCharm的最新版本(2021.1.1 Pro)上使用Python 3.9
我成功了。首先,参考这个post,我从终端导入了asyncio:
那需要两三次尝试。然后,我在这个answer之后更改了
__init__.py
文件。终于重新启动了PyCharm,现在reprex()
正在工作:由reprexpy package于2021-04-28创建
相关问题 更多 >
编程相关推荐