lovvskillz / python-discord-webhook

execute discord webhooks
MIT License
495 stars 74 forks source link

error #104

Open fily-gif opened 2 years ago

fily-gif commented 2 years ago

hello, when i try to import the discord-webhook, it throws an error:

Traceback (most recent call last):
  File "/home/fily/code/nv/main.py", line 1, in <module>
    import discord_webhook
ModuleNotFoundError: No module named 'discord_webhook'

if anyone is still checking this, please help me, i installed the package using pip3 install discord-webhook

ThreeTheOG commented 2 years ago

It works for me when I use "pip install discord-webhook".

lovvskillz commented 2 years ago

Make sure that the package is installed into your virtualenv

danywayGit commented 2 years ago

same for me since I using python 3.10.7 on Windows 10 I have removed, recreated and reinstalled the module in my venv, but without luck.

pip install discord-webhook Requirement already satisfied: discord-webhook in c:\temp\git\myusername\myproject\venv-bot\lib\site-packages (0.17.0) Requirement already satisfied: requests>=2.19.1 in c:\temp\git\myusername\myproject\venv-bot\lib\site-packages (from discord-webhook) (2.28.1) Requirement already satisfied: certifi>=2017.4.17 in c:\temp\git\myusername\myproject\venv-bot\lib\site-packages (from requests>=2.19.1->discord-webhook) (2022.9.24)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\temp\git\myusername\myproject\venv-bot\lib\site-packages (from requests>=2.19.1->discord-webhook) (1.26.12) Requirement already satisfied: idna<4,>=2.5 in c:\temp\git\myusername\myproject\venv-bot\lib\site-packages (from requests>=2.19.1->discord-webhook) (3.4) Requirement already satisfied: charset-normalizer<3,>=2 in c:\temp\git\myusername\myproject\venv-bot\lib\site-packages (from requests>=2.19.1->discord-webhook) (2.1.1)