Pandas installation not recognising a C++ install - python-3.x

I'm installing Pandas along with a few others dependencies for a graph theory project on a new machine.
I'm installing all the dependencies with pip, with Pandas being installed with pip install pandas.
The installation fails with:
running build_ext
building 'pandas._libs.algos' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptool
s, tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-q9t
aeyul\\pandas\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read
().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" instal
l --record C:\Users\USER\AppData\Local\Temp\pip-record-9bazi_ha\install-reco
rd.txt --single-version-externally-managed --compile" failed with error code 1 i
n C:\Users\USER\AppData\Local\Temp\pip-install-q9taeyul\pandas\
I have then proceeded to install the Microsoft Visual C++ 2015 Redist 14.0 from this link.
The C++ 2015 Redist version numbers are 14.0.23026 for 64-bit and 14.0.24215 for 32-bit. I also have various other C++ Redists from other years, down to 2005.
I restarted the computer after installing the Redist, just to ensure there are no problems on that front. However, I'm still getting the same error.
I'm on Windows 8.1.

Visual C++ Redistributable installs run-time libraries and can be used to run applications written with VC. But you need Visual C++ compiler! So install Build Tools.

Related

My brownie won't install. it's telling me "Microsoft Visual C++ v14.0 or more required" i have installed a new vs studio redist 2017 c++ package

C:\Users\ACER\Desktop\Blockchain\Burrockuchen projects\BrownieSimpleStorage> pipx install eth-brownie
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\ACER.local\pipx\logs\cmd_2022-08-06_15.50.29_pip_errors.log
pip failed to build packages:
bitarray
cytoolz
lru-dict
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
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: legacy-install-failure
Error installing eth-brownie.
C:\Users\ACER\Desktop\Blockchain\Burrockuchen projects\BrownieSimpleStorage>
"Download and install the Build Tools for Visual Studio, and then install the C++ build tools. Once installed, run the following command in your terminal. Here is a video tutorial showing you how to install the build tools."
Then do:
pip install --upgrade setuptools
pip install eth-brownie
Reference = https://chain.link/bootcamp/brownie-setup-instructions

How to install ChainerCV

I am using Win 10. I tried installing ChainerCV through pip. I want to know what can be done to solve this problem. Also what is behind this issue: not having VisualStudio, dependency issues or any other thing. Is having CUDA necessary to run ChainerCV?
P.S I have chainer and other dependencies running properly.
Stack Trace:
copying chainercv\utils\bbox_nms_gpu_post.c -> build\lib.win-amd64-3.5\chainercv\utils\bbox
running build_ext
building 'chainercv.utils.bbox._nms_gpu_post' 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 chainercv
Running setup.py clean for chainercv
Failed to build chainercv
Installing collected packages: chainercv
Running setup.py install for chainercv ... error
Complete output from command c:\users\dell\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Dell\AppData\Local\Temp\pip-install-qjghd97d\chainercv\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\Dell\AppData\Local\Temp\pip-record-cl7d0zn_\install-record.txt --single-version-externally-managed --compile:
building 'chainercv.utils.bbox._nms_gpu_post' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "c:\users\dell\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Dell\AppData\Local\Temp\pip-install-qjghd97d\chainercv\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\Dell\AppData\Local\Temp\pip-record-cl7d0zn_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Dell\AppData\Local\Temp\pip-install-qjghd97d\chainercv\
are you trying on admin ? else please follow below steps
open cmd using Ctrl + r then type cmd and try to install from there
pip install ChainerCV

how to install conda install scikits.talkbox package in Python 3.6

I am trying to install scikits.talkbox but in command prompt It is giving me error messages (error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools")

Installing Sklearn from Source on Windows 7

I am on Windows 7 (64 bit) and have Python 3.4 installed along with the other stated required dependencies for the sklearn python package [NumPy (>= 1.6.1), SciPy (>= 0.9)]. I installed Numpy and SciPy from the .whl files I found online that matched python 3.4. I am trying to install the sklearn package by calling pip install sklearn (FYI, I am trying to do this install without using Python (x.y) because I want python 3.x). the pip install sklearn command will run for a while, but then I get the following error:
copying sklearn\tests\__init__.py -> build\lib.win-amd64-3.4\sklearn\tests
running build_clib
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_clib
building 'libsvm-skl' library
compiling C sources
error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279
----------------------------------------
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jjaaae\\AppData\\Local\\Temp\\pip-build-43xaawp2\\scikit-learn\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jjaaae\AppData\Local\Temp\pip-7i3ghuri-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jjaaae\AppData\Local\Temp\pip-build-43xaawp2\scikit-learn\
I have tried to install Microsoft Windows SDK 7.1 as it describes in the error message. I have also restarted the command prompt and my computer, but I still get this error message. What am I missing?
I found the problem. The download file for Microsoft Windows SDK 7.1 allows you to "install" it even if you don't have .Net 4.x installed yet. I must have gotten click happy during the install and missed that warning. So the install for SDK 7.1 was really fast and didn't install what I needed. When I backed up, installed Microsoft .NET Framework 4 from this URL first, then installed SDK 7.1 per instructions it worked.

Cannot find vcvarsall.bat

NOTE: I have seen multiple answers to no avail, so please look at the solution and my failed solutions list before showing as duplicate.
Hey,
So I got a new computer (Old Windows w/ Python 3.4), so I installed Python 3.5 on my new one. I started to install modules until I came across an error like this:
C:\Users\Samuel>pip install noise
Collecting noise
Using cached noise-1.2.2.tar.gz
Installing collected packages: noise
Running setup.py install for noise
Complete output from command "c:\program files\python 3.5\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\Samuel\\AppData\\Local\\Temp\\pip-build-e9dlwpm2\\noise\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Samuel\AppData\Local\Temp\pip-7tgvnyfe-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
creating build\lib.win-amd64-3.5\noise
copying perlin.py -> build\lib.win-amd64-3.5\noise
copying setup.py -> build\lib.win-amd64-3.5\noise
copying shader.py -> build\lib.win-amd64-3.5\noise
copying shader_noise.py -> build\lib.win-amd64-3.5\noise
copying test.py -> build\lib.win-amd64-3.5\noise
copying __init__.py -> build\lib.win-amd64-3.5\noise
running build_ext
building 'noise._simplex' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command ""c:\program files\python 3.5\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\Samuel\\AppData\\Local\\Temp\\pip-build-e9dlwpm2\\noise\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Samuel\AppData\Local\Temp\pip-7tgvnyfe-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Samuel\AppData\Local\Temp\pip-build-e9dlwpm2\noise
I tried to use easy_install as a substitute, but that came with 1) an access denied error (Overcome w/ admin privelages) and 2) Not being able to find vcvarsall.bat
Because of this, I installed Visual Studio 2015 and Visual C++ 2008.
No difference.
I added the path to vcvarsall.bat to the PATH.
No difference.
I added the path to vcvarsall.bat to VS100COMNTOOLS, VS140COMNTOOLS and VS90COMNTOOLS.
No difference.
Running pip and easy_install again w/ admin permission, wearing my lucky socks.
No difference.
Installed and ran Miniconda as suggested by one of the Stack Overflow answers.
Didn't find a single package I needed. Turns out it's not looking for PyPI anyway.
I have no idea how to solve this. Do I need to revert to Python 3.4?
SPECS
Windows 10 x86 64-bit
Python 3.5
VS 2015, VC++ 2008 installed
I think you have the wrong C++: VC++ 2008 is for Python before 3.3.
The VC++ 2015 that you need comes when you install Visual Studio 2015 but you need to explicitly specify the C++ (check the box) for the C++ (2015) in the custom installation options. Try changing that via a re-installation.
Just tried it:
Windows 10 x86 64-bit
Python 3.5
VS 2015 But with the Visual C++ install option checked
Then pip install noise worked fine.

Resources