尝试在 anaconda 提示符下安装 word2vec 时pip install
,我正在尝试将其安装在pip 21.0.1(python 3.8)
并且我收到以下错误消息:
Collecting word2vec
Using cached word2vec-0.11.1.tar.gz (42 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: joblib in c:\users\filip\anaconda3\lib\site-packages (from word2vec) (0.17.0)
Requirement already satisfied: numpy>=1.9.2 in c:\users\filip\anaconda3\lib\site-packages (from word2vec) (1.19.2)
Building wheels for collected packages: word2vec
Building wheel for word2vec (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\filip\anaconda3\python.exe' 'c:\users\filip\anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\filip\AppData\Local\Temp\tmpw_2j875c'
cwd: C:\Users\filip\AppData\Local\Temp\pip-install-zwwxw6q8\word2vec_400610aeb0e84768b86d4eba665a0c99
Complete output (47 lines):
running bdist_wheel
running build
running build_py
creating build
...
installing to build\bdist.win-amd64\wheel
running install
Running custom Install command
Compiling: gcc C:\Users\filip\AppData\Local\Temp\pip-install-zwwxw6q8\word2vec_400610aeb0e84768b86d4eba665a0c99\word2vec\includes\win32/word2vec.c -o Scripts\word2vec.exe -O2 -Wall -funroll-loops
error: [WinError 2] O sistema não conseguiu localizar o ficheiro especificado
----------------------------------------
ERROR: Failed building wheel for word2vec
Failed to build word2vec
ERROR: Could not build wheels for word2vec which use PEP 517 and cannot be installed directly
关于如何解决这个问题的任何想法?