标签: pydictionary

PyDictionary单词"在API中没有同义词"

这就是我在ipython中所做的(我使用的是Python 3.6)

from PyDictionary import PyDictionary
dictionary = PyDictionary()
list = dictionary.synonym("life")
Run Code Online (Sandbox Code Playgroud)

我收到错误:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyDictionary/utils.py:5: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 5 of the file /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyDictionary/utils.py. To get rid of this …
Run Code Online (Sandbox Code Playgroud)

python python-3.x pydictionary

5
推荐指数
1
解决办法
570
查看次数

PyDictionary 同义词和反义词问题

尝试使用 pyDictionary,但命令同义词反义词有问题......

from PyDictionary import PyDictionary
dictionary=PyDictionary()
print (dictionary.synonym("Life")) 
Run Code Online (Sandbox Code Playgroud)

出现此错误

Life has no Synonyms in the API
None 
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

python pydictionary

3
推荐指数
1
解决办法
932
查看次数

错误:PyDictionary 无法安装在 Python 3.10.2 上

我使用 pycharm ide 进行编码,但是当我尝试安装 PyDictionary 模块时,它在控制台上给出了此错误:

PyCharm 截图

该系统运行Windows10,Python版本3.10.2,带有最新的pip和setuptool。所有必要的路径变量均已设置,其他模块导入和安装也没有问题。这种情况仅发生在 python 3.10.2 上

Collecting PyDictionary
  Using cached PyDictionary-2.0.1-py3-none-any.whl (6.1 kB)
Collecting goslate
  Using cached goslate-1.5.2.tar.gz (16 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting bs4
  Using cached bs4-0.0.1.tar.gz (1.1 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting click
  Using cached click-8.0.4-py3-none-any.whl (97 kB)
Requirement already satisfied: requests in c:\users\sysadmin\appdata\local\programs\python\python310\lib\site-packages (from PyDictionary) (2.27.1)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
Collecting colorama
  Using cached …
Run Code Online (Sandbox Code Playgroud)

python pip pycharm python-3.x pydictionary

1
推荐指数
1
解决办法
5051
查看次数

标签 统计

pydictionary ×3

python ×3

python-3.x ×2

pip ×1

pycharm ×1