I need to install face-recognition on windows without having to install Visual Studio C++, is there any way to do this? The problem is that it depends on the dlib library and this depends on having Visual C++ installed.
Unfortunately, it seems that dlib is only distributed as source code. As a result, you will need to compile it on your own. This means that you will need Visual Studio C++ installed, but you can uninstall it afterwords unless you need to update dlib frequently. If you need instructions, you can find them here.
Related
Can anyone help me out with installing wxpython
Please check attached wxpython installation error
the log is telling what you have to do. Have you try install Microsoft Visual C++ 9.0? No?
Your python version is 2.7?
If yes, so download and install Microsoft Visual C++ Compiler for Python 2.7 from the following link:
https://web.archive.org/web/20190720195601/http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
I want to use the face recognition module of python in a project but when I am trying to install it using the command "pip install face_recognition" or "pip install face-recognition", it is showing an error and is not installing. This is the screenshot of the error:
How to fix this error and install the module?
Thanks in advance!
You should install a C++ compiler. I would suggest Visual Studio C++.
This is because the face_recognition package does not have prebuilt wheels for your platform and therefore you need to build them yourself when you install.
Anyhow just installing C++ build tolls will be sufficient.
Verify your installation
cl
And then re-run
pip install face_recognition
Face-recognition python module uses C++, so your computer needs somehow to compile the library it is using. Install any of the C++ compilers (for example minGW) & be sure is that compiler executable is added to your global PATH. After that try to install face-recognition library.
If the step above does not work - try using python 32-bit build (once I have encountered this error because my python build was 64-bit). It may help in some of the cases.
Use python version == 3.7 (any other versions does not compatible with face-recognition module)
Install dlib dependency and try to use conda for installing & manipulating environments.
P.S. you need to install C++ compiler, not Visual Studio itself. Visual studio is an IDE, while compiler is not.
Hi I am trying to install the package 'pyfolio' but I get the error indicating:
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
but I have already installed visual c++ redist packages but it still does not work.
I found out that the error occurs while installing package bottleneckso I thought to read the documentation on installing bottleneck, it was written in c and so I installed MinGW but could not be able to set ming as the compiler
I also installed cython. I am on a windows machine.
is there any other alternative to applying here?
Many people suggest going to the Microsoft link and downloading the entire package to build and compile things. But I like using choco for things because it's more straightforward. Basically this is an option if you are Linux user and stuck on windows.
I recommend making a virtual environment incase of mistakes and other fun issues.
python -m venv .venv
source .venv/Script/Activate # works with git bash
pip install --upgrade setuptools
choco install visualcppbuildtools
You don't have any Visual C++, you only have Redistributable packages. They install run-time libraries that are used to run applications written with VC. But you need Visual C++ compiler! Install Build Tools.
See https://stackoverflow.com/search?q=%5Bpip%5D+Microsoft+Visual+C%2B%2B+14.0+is+required
I have read through
How to install Theano on Anaconda Python 2.7 x64 on Windows?
I installed Anaconda 2 and followed the steps and I can import theano, however once in a while I get a windows crash message window on python crash similar to this:
python.exe crashes when importing `theano`
I have done "conda install mingw libpython" step.
Also when I run theano.test() I get this warning:
pycuda import failed in theano.misc.pycuda_init.
Overall I think there were some more steps in the windows installation page regarding visual studio, and other modules. I have visual studio 2012 installed by microsoft.
Did you follow the theano install instructions fully?
On windows 7 x64, I would advise to either use Canopy from Enthought, which, if you are a student , you can get the complete package for free.
Or, i also used WinPython before, it worked fine.
Although you have to follow all steps, including :
Installing Windows Software Development Kit version 7.1 or you can install the newest Visual Studio which comes with it and it comes with an option to install Microsoft Visual C++ Compiler for Python 2.7
Installing TDM GCC
But be sure to check
http://deeplearning.net/software/theano/install_windows.html
You might wanna check if you missed any steps.
I had problems with Anaconda and Theano before. So i gave up on using it.
However a friend had success with it and Theano as well.
Just be sure you have your environment and python setup installed properly prior to theano install.
Doing
where gcc
where gendef
where cl
where nvcc
on the Command Prompt Might reveal something...
Be sure to have installed Windows SDK and last visual studio.
My python background is unix (mac os and ubuntu). I recently heard about a Python plugin for VS and though this could be awesome because i like Windows ;-). The plugin is only awailable in the 2013 version so i installed it and then i tried to install cython over the integrated GUI command line interface where you can install packages over pip or easy_install, which is pretty neat.
It failed, error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). after some research it seems like i would have to install visual c++ from the 2008 version?
Im a bit confused i have visual studio installed and with it the visual studio c++. Im really not used to windows, so could anyone who understands this give me some directions please?
Set the VS90COMNTOOLS environment variable.
SET VS90COMNTOOLS=%VS120COMNTOOLS%
Ok this is a bit of an error on my part. Cython doesn't support Windows.
Cython.org links to this in its download section.
Christoph Gohlke has created Windows installers available for download on his site.
After you downloaded the wheel file you just install it with pip into the environment(virtual or global) you want and you are good to go.
pip install <path-to-download.whl>
or enter the path to the .whl file into the VS pip GUI.