2

Some requirements have different pip names than they do when you import them. For example, Discord.py is installed by using pip install discord.py, but when you use it in code, it's just import discord.

Therefore PyCharm complains that "package not listed in requirements.txt".

How can I quiet this error, or alias the package in requirements.txt so it recognizes that it uses different names?

cclloyd
  • 8,171
  • 16
  • 57
  • 104
  • You may have to write `https://github.com/Rapptz/discord.py` in your `requirements.txt` – MrSpaar Jul 12 '20 at 08:08
  • If all you want to do is make PyCharm quiet, you can try this https://stackoverflow.com/a/42817903/4110924 – Cyxo Jul 12 '20 at 21:21

0 Answers0