8 months ago
File "/app/main.py", line 1, in <module>
import discord
ModuleNotFoundError: No module named 'discord'
5 Replies
8 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
8 months ago
first u will have to install the package of discord using the pip commands and then u can remove that part of the error.
8 months ago
Add a requirements.txt file including the lib discord.py in the requirements txt file as follows:
```
discord.py
```
Your other libs also need to go in the requirements.txt file to be installed.
8 months ago
before uploading your files to railway run
>pip freeze > requirements.txt
This would create a file called requirements.txt,
The requirements.txt file should have something like this in it:
> discord.py==2.4.0
If not, make sure you have discord.py installed on your project locally.
Do it by running pip install -U discord.py