答案 0 :(得分:1)
我也注意到了这个问题。
当您查看site-packages/pyrobot
内部时,您会注意到forms
文件夹丢失,但是,当您查看原始github仓库时,您可以看到此文件夹。
您可以尝试手动将forms
文件夹复制到site-packages/pyrobot
。手动复制文件夹时请注意,pip uninstall pyrobot
不会删除您复制的内容。所以你也必须手动删除。
我不确定。不应该是from pyrobot import RoboBrowser
而不是from pyrobot import Robot
吗?
回答更新:
大笑,这很令人困惑,因为https://github.com/jmcarp/pyrobot
和https://github.com/chriskiehl/pyrobot
具有相同的名称但是库不同。
pip install pyrobot
安装https://github.com/jmcarp/pyrobot
,但如果我没记错,那就是https://github.com/chriskiehl/pyrobot
。
如果是这样,您可以直接将pyrobot.py
中的一个文件https://github.com/chriskiehl/pyrobot
复制到项目源目录中并使用它。
不幸的是我无法测试它,因为它是一个仅限Windows的库。