当我尝试在 Python3 中运行 GloVe 包的代码时遇到错误。 我目前正在使用 Windows 10 和 Anaconda3。我正在寻求有关此问题的帮助。
这是我尝试过的代码。
pip install glove-python-binary
这是我收到的错误消息。
ERROR: Could not find a version that satisfies the requirement glove-python-binary (from versions: none) ERROR: No matching distribution found for glove-python-binary
发布答案,因为我没有足够的声誉来发表评论。
首先,您似乎正在使用 Jupyter Notebook。以感叹号字符开始代码单元,例如
!
,指示 Jupyter 将该行上的代码视为操作系统 shell 命令。例如,!pip install <package>
。
其次,查看这个answer,它应该可以解决您的问题。