I am trying to write a simple script that should include a library for working with PDFs that I found online called Camelot.
I installed it with pip and the module displays in the site-packages folder alongside the other pip-installed modules, but when I try to import it I get this: ModuleNotFoundError: No module named 'camelot'
To be noted:
I have 2 verisons of Python installed, 3.10 and 3.12, but I checked and the module is in the 3.10 folder where IDLE operates (C:\Users[...]\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages)
Other modules and preinstalled libraries work fine, but Camelot and some other pip-installed modules, such as Pandas, won't. All modules are installed in the same folder.
I checked the pip version and restarted my PC (I'm using Windows)
I updated the sys.path list to include the module's path, as suggested under a different question on a similar topic
I'm clearly missing something here. Any ideas?
venvand install packages in thatvenvthen activate and use thatvenvto run your script... This is best practice to avoid conflicts with multiple libraries or python installspython -m site. It will tell you where python will look for packages. In IDLE you can get the same by doingimport sys; print(sys.path). You should check which version of python you are running from the command line withpython --version.