How can I get rid of this error:-
unable to find vcvarshall.bat
I am trying to compile animation nodes 2.0 addon for blender 32 bit, I can't find 32 bit version of the addon, it doesn't have wheel, I have installed anaconda, created Python 3.5 environment, Visual Studio Community 2017, visual c++ 2015 and 2017 and updated setup tools yet I still get "unable to find vcvarshall.bat"
Python 3.6 compiles the addon, but blender isn't able to accept it!
Please advise how to avoid the above error in Python 3.5.
I got it.
I installed visual c++ build tools from here: http://go.microsoft.com/fwlink/?LinkId=691126
and then i ran animation nodes 2.0 addon using x86 native command prompt which can be found in start -> all programs -> visual studio 2017 -> VC.
When i run it through default command prompt, it shows error!
Related
I'm currently working on a remote camera control and using a Point Grey fl3-u3-32s2c-cs. I would like to control my camera, retrieve images and so on using Python. FLIR (previously Point Gre) provides FlyCapture, which is the SDK used to work with FLIR USB 2.0, USB 3.0, Gigabit Ethernet or FireWire cameras. Since I want to work exclusively with Python, I found the python package pyflycapture2 that would fit my needs. However, when I tried to install the python package pyflycapture2, I got the error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools". And that's what I did: Download Microsoft Build Tools for Visual Studio, then I selected Workloads → Desktop development with C++, then for Individual Components, I selected only Windows 10 SDK and C++ x64/x86 build tools.
When I try to run pip install pyflycapture in the command line, I get the following error message (shown in the image file):
Error message when running pip install pyflycapture2
By lookin at the error message, it seems that it couldn't find the c++ file, in fact one part of the error says: src\flycapture2.c(235): fatal error C1083: Cannot open include file: 'FlyCapture2Defs_C.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
I have added the folder where I installed visual studio and where the building tools in c++ are installed into the path, but for some reason I keep getting the same error. I’m working with Windows 10 andq 64-bit operating system, x64-based processor. Any hwlp would be greatly appreciated, thank you.
I want to install METIS for python3.6 on windows7.I did the following steps:
1-Download the source (tar.gz or zip file) from
https://pypi.python.org/pypi/networkx-metis/
2-Unpack and change directory to the source directory (it should have the
setup.py on top level).
3-Run
python setup.py build
to build
in this step, I encountered the following error:
error: Microsoft Visual C++ 14.0 is required.
i installed "Visual Studio Tools 2017", Then I run the code again. I encountered the following error:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\cl.exe' failed with exit status 2
I would be very grateful if you answer my questions.
Although what I used was Windows 10, perhaps the same steps as I laid out here may work for you.
First, you should get the python metis wrapper using pip: pip install metis.
Second, you must install conda-metis, which you can find here. Note, it does not require you to install Anaconda to work.
Place the files in conda-metis-master in some file path.
The installation requires some fixes. Make sure you have a recent version of Visual Studios (I used 2017). For me, VS had a problem running the instructions in BUILD-WINDOWS.txt, which landed me on this thread:
Why does MSBuild look in C:\ for Microsoft.Cpp.Default.props instead of c:\Program Files (x86)\MSBuild? ( error MSB4019)
Specifically, the answer For Visual Studio 2017 and 2019 on Windows 10 was what I went with. It could potentially be different for you since you are on Windows 7.
For the python metis package, we need to generate a metis.dll, not a metis.lib file, so we must also look closer at the CMakeLists.txt (see the Linux version of this discussion here). We add on line 19: set(METIS_LIBRARY_TYPE SHARED).
You should follow the BUILD-WINDOWS.txt instructions, but run .\vsgen -G "Visual Studio 15 2017 Win64" inside your conda-metis file path in command prompt with full permissions instead of using Visual Studio 10.
Before moving on to using the files that were generated by the above command in path_to_your_metis_dir\build\windows\, we need another fix. Following what was said in:
rint() issue after creating VS Project using CMake
we have to edit the file path_to_your_metis_dir\GKlib\gk_arch.h by removing the line: #define rint(x) ((idx_t)((x)+0.5)). (Or the fix listed on this github exchange.)
Then go to path_to_your_metis_dir\build\windows\.
Open METIS.sln in Visual Studios, go to the top to Build and from the scroll-down go to Build Solution. Afterwards, the .dll file will be in path_to_your_metis_dir\build\windows\libmetis\Release\.
Last, we run in command prompt:
set METIS_DLL=path_to_your_metis_dir\build\windows\libmetis\Release\metis.dll
After this, python metis no longer failed when I would import it into my code with the step from metis import *.
A beginner here.I have been trying to get Labellmg work using the following source on Github:
https://github.com/tzutalin/labelImg
I was confused as to if I could just download the .exe file found in 'Download prebuilt binaries' or if I have to build it from source. So, I went with building it from source anyway:
Here are the steps I followed: (I have python 3.5 and lxml already installed)
Installed Visual Studio 2010 from here:
http://download.cnet.com/Microsoft-Visual-Studio-2010-Ultimate/3000-2383_4-75450998.html
Downloaded SIP source code (version 4.19.5) from here:
https://www.riverbankcomputing.com/software/sip/download
Downloaded PyQt4 source code (version 4.12.1) from here:
https://www.riverbankcomputing.com/software/pyqt/download
Downloaded and Installed Qt
(qt-opensource-windows-x86-vs2010-4.8.6.exe)
Staying in one Command Prompt and in the sip-4.19.5 directory, I entered the following commands:
python configure.py
"C:\Qt\4.8.6\bin\qtvars.bat"
"C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat"
nmake
The first three steps are successful but when I execute the nmake command, I get the following error:
I am probably doing something really silly. Kindly, please help me out! I have been stuck with this problem for more than 8 hours straight now.
My OS is windows 8 and python version is 3.4, Microsoft visual studio 11.0 .
While trying to install mod_wsgi I am getting vcvarsall.bat not found. I have changed my environment variables VS100COMNTOOLS value to VS110COMNTOOLS. But still getting same error.
I tried to install SDK for windows8 and .netframework 4.0 but it failed.
In my system I have following .net folder: C:\Windows\Microsoft.NET under this I have following folders : assembly; authman; Framework; Framework64.
I also have Microsoft.Net folder in C:\Program Files (x86)\Microsoft.NET.
I installed Windows kit under same folder.
I tried to resolved the problem using nmake -f ap24py34-win64-VC10.
It's giving the following error:
v1077: "c:\program Files <x86>\Microsoft Visual Studio 11.0\VC\BIN\c1.Exe":return code '0x2' stop.
Please help me to fix this problem
Thanks in advance
According to this page python 3.4 needs Visual C++ 10.0. You actually need it installed. If you read further down the page, you'll find a link to a standalone distro provided by MS. Installing this should fix the problem.
When attempting to install the scikit-bio toolkit via pip on Windows XP using Python 2.78 and Visual C++ 2008 Express Edition, the process is interrupted with the following message issued by VC:
cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration
-after-statement'
Concerning this error, Microsoft Developer Network website just says:
invalid numeric argument 'number'
A number greater than 65,534 was specified as a numeric argument.
I did not (yet) attempted to install scikit-bio under Linux (Ubuntu 12.04 Precise), but I am under the impression that it will work fine (as everything goes as regards Linux).
Has anyone ever succeeded installing scikit-bio under Windows (XP, 7, 8)? Any hints?
Thanks in advance!
I've installed Anaconda's Python (3.5) on a Windows 10 machine. As you should know, there is no official version of scikit-bio for this platform, but you can install it with this workaround:
Download the latest source from the Scikit-bio Github repository.
Using a tool like 7-zip, unzip it at your home directory.
Open a command line client and change to the source's directory
cd %HOMEPATH%\scikit-bio-master
Using Notepad++ edit the file setup.py
"C:\Program Files (x86)\Notepad++\notepad++" setup.py
Look for the line where the ssw_extra_compile_args variable is defined and change it. You can comment the previous version and redefine the variable in a new line:
#ssw_extra_compile_args = ['-Wno-error=declaration-after-statement']
ssw_extra_compile_args = []
Save the changes, close the editor and run the installation with this command:
python setup.py install
Hopefully you won't receive any error messages. Open an Anaconda's Python session (using the command python) and test if Scikit-Bio was installed rightly using print(skbio.art).
By the way, I've previously installed Visual Studio 2015 Community Edition with C++ SDK features enabled, in order to meet the compiler requirements for the package (Scikit-Bio) installation.
At this time, scikit-bio doesn't officially support windows. We'd definitely be interested in hearing about people's efforts to install, test, and use scikit-bio on Windows, but we don't have developers with expertise in this area.
This is related to biocore/skbio#941.