This repository was archived by the owner on Jun 9, 2020. It is now read-only.
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
[Cannot install via pip on Windows 10] error: Unable to find vcvarsall.bat #73
Closed
Description
I am using Python 3.5.2 on Windows 10. I have Microsoft Visual Studio 14 installed. In environment variables, I have the following:
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0\
I could not find any prebuilt binaries. So have to build. I ran pip install line_profiler
from Developer Command Prompt VS2015 and I get this error:
C:\Program Files (x86)\Microsoft Visual Studio 14.0>pip install line_profiler
Collecting line_profiler
Using cached line_profiler-1.0.tar.gz
Building wheels for collected packages: line-profiler
Running setup.py bdist_wheel for line-profiler ... error
Complete output from command C:\Users\arvindpdmn\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ARVIND~1\\AppData\\Local\\Temp\\pip-build-3v9i325n\\line-profiler\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\ARVIND~1\AppData\Local\Temp\tmppb24vd4kpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
copying line_profiler.py -> build\lib.win-amd64-3.5
copying kernprof.py -> build\lib.win-amd64-3.5
running build_ext
skipping '_line_profiler.c' Cython extension (up-to-date)
building '_line_profiler' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Failed building wheel for line-profiler
Running setup.py clean for line-profiler
Failed to build line-profiler
Installing collected packages: line-profiler
Running setup.py install for line-profiler ... error
Complete output from command C:\Users\arvindpdmn\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ARVIND~1\\AppData\\Local\\Temp\\pip-build-3v9i325n\\line-profiler\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\ARVIND~1\AppData\Local\Temp\pip-rw3tld7h-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
copying line_profiler.py -> build\lib.win-amd64-3.5
copying kernprof.py -> build\lib.win-amd64-3.5
running build_ext
skipping '_line_profiler.c' Cython extension (up-to-date)
building '_line_profiler' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command "C:\Users\arvindpdmn\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ARVIND~1\\AppData\\Local\\Temp\\pip-build-3v9i325n\\line-profiler\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\ARVIND~1\AppData\Local\Temp\pip-rw3tld7h-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ARVIND~1\AppData\Local\Temp\pip-build-3v9i325n\line-profiler\
Metadata
Metadata
Assignees
Labels
No labels