当我试图导入urx库时,代码失败了。
import urx
robot = urx.Robot("192.168.0.100")我已经安装了库(pip install urx)。如果我再次运行安装程序,它会说:
Requirement already satisfied: urx in c:\users\...\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (0.11.0) Requirement already satisfied: math3d in c:\users\...\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from urx) (3.4.1)
你们中有人知道如何解决这个问题吗?提前感谢!
发布于 2022-09-08 13:01:02
我也有同样的问题,我的问题是通过检查继承全局站点包 in PyCharm来解决的。
File -> Settings -> Project Interpreter -> Add Local Interpreter -> Inherit global site-packages
https://stackoverflow.com/questions/73649122
复制相似问题