在Windows 10,python 3.6.6,64位上的Guidedlda安装问题

时间:2018-12-27 06:40:19

标签: machine-learning deep-learning nlp lda python-packaging

在doc:https://pypi.org/project/guidedlda/中提到的conda提示符下执行“ pip install guidelda”时遇到的问题。知道如何解决这个问题吗?

错误:需要Microsoft Visual C ++ 14.0。使用“ Microsoft Visual C ++生成工具”获取它:https://visualstudio.microsoft.com/downloads/

我尝试在此处 Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat) 找到答案,但无法解决

我正在64位计算机上的Windows 10,Python:3.6.6中运行此程序

以下错误:

(基本)C:\ Users \ sys24> pip安装guidelda

Collecting guidedlda
  Using cached https://files.pythonhosted.org/packages/f8/ee/6d6e2b3525388399e12a4482554c7529a5fcf5e99c50a60abaa02894b8bf/guidedlda-2.0.0.dev22.tar.gz
Requirement already satisfied: numpy in c:\softwares\lib\site-packages (from guidedlda) (1.15.4)
Building wheels for collected packages: guidedlda
  Running setup.py bdist_wheel for guidedlda ... error
  Complete output from command c:\softwares\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sys24\\AppData\\Local\\Temp\\pip-install-af7o7id6\\guidedlda\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\sys24\AppData\Local\Temp\pip-wheel-2hhf0bwr --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  creating build\lib.win-amd64-3.6\guidedlda
  creating build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\__init__.py -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\datasets.py -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\utils.py -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\_setup_hooks.py -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\__init__.py -> build\lib.win-amd64-3.6\guidedlda
  running egg_info
  writing guidedlda.egg-info\PKG-INFO
  writing dependency_links to guidedlda.egg-info\dependency_links.txt
  writing requirements to guidedlda.egg-info\requires.txt
  writing top-level names to guidedlda.egg-info\top_level.txt
  [pbr] Reusing existing SOURCES.txt
  copying guidedlda\tests\nyt.ldac -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.6\guidedlda\tests
  copying guidedlda\_guidedlda.c -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\_guidedlda.pyx -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\gamma.c -> build\lib.win-amd64-3.6\guidedlda
  copying guidedlda\gamma.h -> build\lib.win-amd64-3.6\guidedlda
  running build_ext
  building 'guidedlda._guidedlda' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

  ----------------------------------------
  Failed building wheel for guidedlda
  Running setup.py clean for guidedlda
Failed to build guidedlda
Installing collected packages: guidedlda
  Running setup.py install for guidedlda ... error
    Complete output from command c:\softwares\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sys24\\AppData\\Local\\Temp\\pip-install-af7o7id6\\guidedlda\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\sys24\AppData\Local\Temp\pip-record-t66zh8b6\install-record.txt --single-version-externally-managed --compile:
    running install
    [pbr] Generating AUTHORS
    [pbr] AUTHORS complete (0.0s)
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\guidedlda
    creating build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\__init__.py -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\datasets.py -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\utils.py -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\_setup_hooks.py -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\__init__.py -> build\lib.win-amd64-3.6\guidedlda
    running egg_info
    writing guidedlda.egg-info\PKG-INFO
    writing dependency_links to guidedlda.egg-info\dependency_links.txt
    writing requirements to guidedlda.egg-info\requires.txt
    writing top-level names to guidedlda.egg-info\top_level.txt
    [pbr] Reusing existing SOURCES.txt
    copying guidedlda\tests\nyt.ldac -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.6\guidedlda\tests
    copying guidedlda\_guidedlda.c -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\_guidedlda.pyx -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\gamma.c -> build\lib.win-amd64-3.6\guidedlda
    copying guidedlda\gamma.h -> build\lib.win-amd64-3.6\guidedlda
    running build_ext
    building 'guidedlda._guidedlda' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command "c:\softwares\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sys24\\AppData\\Local\\Temp\\pip-install-af7o7id6\\guidedlda\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\sys24\AppData\Local\Temp\pip-record-t66zh8b6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\sys24\AppData\Local\Temp\pip-install-af7o7id6\guidedlda\
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

0 个答案:

没有答案