PyCharm creates a virtual environment inside the project, so if you use it, then you need to install libraries in it through its internal console. Sorry for the translator