I'm trying to install the guidedlda
library through anaconda prompt
but I receive an error -
ERROR: Command errored out with exit status 1:
command: 'C:\Users\jj\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\setup.py'"'"'; __file__='"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\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\jj\AppData\Local\Temp\pip-record-74wyx3fi\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\jj\AppData\Local\Continuum\anaconda3\Include\guidedlda'
cwd: C:\Users\jj\AppData\Local\Temp\pip-install-9_541ucv\guidedlda_157772654c20488db2c0d841ac9d992e\
Complete output (47 lines):
C:\Users\jj\AppData\Roaming\Python\Python37\site-packages\setuptools\dist.py:42: DistDeprecationWarning: Do not call this function
warnings.warn("Do not call this function", DistDeprecationWarning)
running install
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.0s)
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.1s)
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\guidedlda
copying guidedlda\datasets.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\utils.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\_setup_hooks.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\__init__.py -> build\lib.win-amd64-3.7\guidedlda
creating build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\__init__.py -> build\lib.win-amd64-3.7\guidedlda\tests
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
writing pbr to guidedlda.egg-info\pbr.json
[pbr] Reusing existing SOURCES.txt
copying guidedlda\_guidedlda.c -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\_guidedlda.pyx -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\gamma.c -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\gamma.h -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\tests\nyt.ldac -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.7\guidedlda\tests
running build_ext
building 'guidedlda._guidedlda' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\jj\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\setup.py'"'"'; __file__='"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\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\jj\AppData\Local\Temp\pip-record-74wyx3fi\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\jj\AppData\Local\Continuum\anaconda3\Include\guidedlda' Check the logs for full command output.
I also tried:
https://github.com/vi3k6i5/GuidedLDA
cd GuidedLDA
sh build_dist.sh
python setup.py sdist
pip install -e .
But when I run sh build_dist.sh
it says no such function exists internally or externally for 'sh'
What do I need to do? I am operating this on Windows
.
I'm trying to install the guidedlda
library through anaconda prompt
but I receive an error -
ERROR: Command errored out with exit status 1:
command: 'C:\Users\jj\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\setup.py'"'"'; __file__='"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\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\jj\AppData\Local\Temp\pip-record-74wyx3fi\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\jj\AppData\Local\Continuum\anaconda3\Include\guidedlda'
cwd: C:\Users\jj\AppData\Local\Temp\pip-install-9_541ucv\guidedlda_157772654c20488db2c0d841ac9d992e\
Complete output (47 lines):
C:\Users\jj\AppData\Roaming\Python\Python37\site-packages\setuptools\dist.py:42: DistDeprecationWarning: Do not call this function
warnings.warn("Do not call this function", DistDeprecationWarning)
running install
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.0s)
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.1s)
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\guidedlda
copying guidedlda\datasets.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\utils.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\_setup_hooks.py -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\__init__.py -> build\lib.win-amd64-3.7\guidedlda
creating build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\__init__.py -> build\lib.win-amd64-3.7\guidedlda\tests
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
writing pbr to guidedlda.egg-info\pbr.json
[pbr] Reusing existing SOURCES.txt
copying guidedlda\_guidedlda.c -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\_guidedlda.pyx -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\gamma.c -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\gamma.h -> build\lib.win-amd64-3.7\guidedlda
copying guidedlda\tests\nyt.ldac -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.7\guidedlda\tests
copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.7\guidedlda\tests
running build_ext
building 'guidedlda._guidedlda' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\jj\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\setup.py'"'"'; __file__='"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-9_541ucv\\guidedlda_157772654c20488db2c0d841ac9d992e\\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\jj\AppData\Local\Temp\pip-record-74wyx3fi\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\jj\AppData\Local\Continuum\anaconda3\Include\guidedlda' Check the logs for full command output.
I also tried:
https://github.com/vi3k6i5/GuidedLDA
cd GuidedLDA
sh build_dist.sh
python setup.py sdist
pip install -e .
But when I run sh build_dist.sh
it says no such function exists internally or externally for 'sh'
What do I need to do? I am operating this on Windows
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.