ModuleNotFoundError: No module named 'urx'

Viewed 31

my code fails, when I try to import the urx library.

import urx

robot = urx.Robot("192.168.0.100")

I already installed the library (pip install urx). If I run the installer again it says:

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)

Does any of you have an idea how to solve this problem? Thanks in advance!

1 Answers

I was having the same issue, mine got resolved by checking inherit global site-packages in PyCharm

File -> Settings -> Project Interpreter -> Add Local Interpreter -> Inherit global site-packages

Related