![]() What you're having issues with is that your pip command, is not connected to your installation of python3. I would really like an answer to this problem. The weird thing is that the library numpy works perfectly. The only way I found to execute the program correctly was by moving the file to the folder where the library exists so that atom can find the library. ModuleNotFoundError: No module named 'PyDictionary' This is the error: Traceback (most recent call last):įile "C:\Users\Ziad\Desktop\programs\Dictionary.py", line 1, in This is the program: from PyDictionary import PyDictionary However, when I try to run this simple program in atom, it says module not found. Requirement already satisfied: certifi>=2017.4.17 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from requests->PyDictionary) (2020.12.5) Requirement already satisfied: chardet=3.0.2 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from requests->PyDictionary) (4.0.0) Requirement already satisfied: urllib3=1.21.1 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from requests->PyDictionary) (1.26.4) Requirement already satisfied: idna=2.5 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from requests->PyDictionary) (2.10) Requirement already satisfied: futures in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from goslate->PyDictionary) (3.1.1) Requirement already satisfied: soupsieve>1.2 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from beautifulsoup4->bs4->PyDictionary) (2.2.1) Requirement already satisfied: beautifulsoup4 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from bs4->PyDictionary) (4.9.3) Requirement already satisfied: click in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from PyDictionary) (7.1.2) Requirement already satisfied: requests in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from PyDictionary) (2.25.1) Requirement already satisfied: goslate in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from PyDictionary) (1.5.1) Requirement already satisfied: bs4 in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (from PyDictionary) (0.0.1) This will return a dictionary containing the meanings of the word.Basically, I downloaded the library using pip install PyDictionary and I made sure it exists by writing the same thing again and this appeared: Requirement already satisfied: PyDictionary in c:\users\ziad\appdata\local\programs\python\python39\lib\site-packages (2.0.1) This is will create a local instance of the PyDictionary class and now it can be used to get meanings, translations etc. PyDictionary can be utilised in 2 ways, either by creating a dictionary instance which can take words as arguments or by creating a dictionary instance with a fixed amount of words.įor example, from PyDictionary import PyDictionary dictionary = PyDictionary () Installation is very simple through pip (or easy_install)įor Easy_Install easy_install PyDictionary This module uses Python Requests, BeautifulSoup4 and goslate as dependencies Installation It uses WordNet for getting meanings, Google for translations, and for getting synonyms and antonyms. ![]() ![]() PyDictionary is a Dictionary Module for Python 2/3 to get meanings, translations, synonyms and Antonyms of words. PyDictionary: A "Real" Dictionary Module for Python ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |