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.
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 uncompress Embed Python, download pip wheel extract it and put to lib\site-packages. Next run python -m pip install pywin32. So far so god. But when running program it fails to load pywin32file.pyd. With dependency walker I checked and realized it is x86 architecture while running x64 Python. I tried with x64 downloaded version of pywin32 wheel file and got error "Unsupported platform". pip installed x86 wheel but is is not correct.
At the end, I unzipped x64 version of pywin32 wheel into lib\site-packages. Two dlls from pywin32_system32 copied to dll search path and it works now.
We are distributing Embed Python with handful of libraries and pip is god way to get them.
What causes wrong architecture detection by pip and how to solve problem?
The problem you encountered may have had a different cause to my issue, but I was able to resolve a similar problem with pip installing 32-bit packages on 64-bit Python by changing my VSCMD_ARG_TGT_ARCH environment variable from x86 (which seems to be the default setting if you are using the Visual Studio Developer Command Prompt or anything that relies on it) to x86_64.
This seems to be a bug in packaging that was just fixed this April, so, as of this writing, the fix may not have yet made its way into pip.
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
OS: Windows 8 64bit with the latest update.
Objective: Run Python.exe with Powershell as an administrator.
I've changed the path to include the script but when I try to open Python I get an error code. I receive the same error during the installation.
api-ms-win-crt-runtime-l1-1-0.dll is missing from my computer.
How would I go about resolving this issue.
This error is usually caused by the missing Visual C++ Redistributable, which is a required dependency to install Python on Windows Computer.
To install Python successfully, download Visual C++ Redistributable from here and install it and Reboot the system.
After installing this, you would be able to install Python.
Link: Visual C++ Redistributable
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.