numpy for 64 bit windows - windows

I have read several related posts about installing numpy for python version 2.7 on a 64 bit windows7 OS. Before I try these, does anybody know if the 32bit version will work on a 64bit system?

It should work if you're using 32-bit Python. If you're using 64-bit Python you'll need 64-bit Numpy.

If you are getting it from pip and you want a 64 bit version of NumPy, you need MSVS 2008. pip needs to compile NumPy module with the same compiler that Python binary was compiled with.
The last I checked (this Summer), python's build.py on Windows only supported up to that version of MSVS. Probably because build.py isn't updated for compilers which are not clearly available for free as compile-only versions. There is an "Express" version of MSVS 2010, 2012 and 2013 (which would satisfy that requirement). But I am not sure if there is a dedicated repository for them and if they have a redistribution license. If there is, then the only problem is that no one got around to upgrading build.py to support the newer vertsions of MSVS.

Related

Is pytorch 1.7 officially enabled for cuda 10.0?

I had to stay on CUDA 10.0 for personal projects.
Rather than installing Pytorch with versions appropriate for CUDA 10.0, I accidentally installed Pytorch 1.7 supported with CUDA 10.1. In particular, I installed by
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Surprisingly, everything works fine so far although the CUDA versions do not match.
To verify my installation, I've run the code given in collect_env.py, and it was fine.
I am just wondering few things.
Did Pytorch team officially comment Pytorch 1.7 is compatible with CUDA 10.0?
Would there be more rigorous ways to verify my Pytorch installation?
Surprisingly, everything works fine so far although the CUDA versions
do not match.
Changes between minor versions should work (mismatch like this worked in my case), although there is no promise of compatibility in 10.x release (source), only since 11.x there will be binary compatibility.
Did Pytorch team officially commented Pytorch 1.7 is compatible with
CUDA 10.0?
Not that I'm aware of, but listed wheels do not include 10.0 CUDA and PyTorch 1.7.0 (latest with 10.0 support seems to be 1.4.0).
Would there be more rigorous way to verify my Pytorch installation?
As above, maybe cloning PyTorch's github repo, reverting to tagged release and running tests (folder here, one of cuda test files here), but for personal projects might be excessive.
The Pytorch Previous Version Log offers installations for CUDA versions 9.2, 10.1, 10.2 and 11. Therefore, CUDA 10 is probably not officially supported.

GNAT GPL 2016 Installation Hassle On Windows XP SP3

About 2 weeks ago I installed the new 2016 version of the GNAT GPL Ada/SPARK compiler and associated software tools.
But the damn thing won't work right.
Running existing projects on it, it just won't compile and shows some errors with Python files.
Anyone else experience this problem ?
I'm (still) using Win XP as the platform for the GNAT GPL dev tools.
EDIT
Just saw this on a ReadMe file : This version of GNAT GPL is officially supported on the following hosts. Please see the "Special Notes" section immediately following the targets section for special instructions relevant to specific platforms. PC/x86 and x86_64 - Windows Vista Business, 7, 8, 8.1, and 10 So it looks like GNAT 2016 won't run any longer on Win XP machines.
The errors seem to be in the jedi library, part of python.
Did you install in a new directory, or over an existing install ? I would recommend the former, so you likely should redo the install from scratch, and in a new directory.
I simply disable "jedi support" plugin inside Tools/Plugins and everything works perfectly. This plugin is completion for python editor, maybe you don't need it for ada.

Can Lazarus 64-bit for Windows compile to 64-bit for Windows?

I downloaded, what i thought, would be the 64-bit version of Lazarus:
Although it downloads a 32-bit build:
And after installing it, the IDE is 32-bits:
And it builds 32-bit binaries:
Changing the targeting options to win64, win64, win64:
Gives an error that Lazarus doesn't support 64-bit:
Reading the somewhat dated Cross compiling Wiki page gives the instructions on how to make the 64-bit Lazarus work on 64-bit machines:
From win32 to win64
If you are compiling the 2.1.1 or greater branch of fpc you can just do:
$ make all OS_TARGET=win64 CPU_TARGET=x86_64
and then
$ make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64
which, if you follow, just gives a few thousand errors:
The common suggestion is to abandon the Lazarus IDE, altogether, and use a fork known as CodeTyphoon. Downloading that 500 MB, and installing it, i couldn't find an IDE anywhere:
Which is confusing, because i thought CodeTyphoon was a Pascal Visual Programming Environment.
Before i go on
Before i go randomly stumbling around, downloading gigabytes of stuff, let me just ask straight out:
Can Lazarus 64-bit for Windows compile to 64-bit for Windows?
Is there a 64-bit Lazarus for Windows, that can create 64-bit Windows binaries? Am i missing something, or is that functionality not in there yet?
And if the ability is in there, at least could someone commiserate that my confusion is understandable?
The following is from README.txt files on the SourceForge download pages (http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%201.2/ and http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%201.2/). However, those readme.txt files are apparently not included in the actual installation.
I have verified that installing the plug-in allows you to build a 64-bit application.
Two things:
there is an add-on for building Win64 applications in the 32-bit Lazarus IDE:
Add-On for building 64bit Windows applications:
lazarus-1.2.0-fpc-2.6.2-cross-x86_64-win64-win32.exe
This file can be installed as add-on to the 32 bit Lazarus IDE (on Systems with Windows 32 or 64 bit), if you wish to develop for
64bit Windows too. If you install this on a 64bit Windows PC together
with the 32 bit Lazarus IDE, you will also able to debug 64 bit
applications.
the link to the 64-bit Lazarus IDE on the Lazarus homepage is incorrect (it points to the Win32 version). The link should be:
http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%201.2/lazarus-1.2.0-fpc-2.6.2-win64.exe/download
If you use the 64-bit IDE you'll need a similar (but different) plugin to build 32-bit binaries.

ILmerge generating only 64bit compatible exe

I am building up my VS2010 project using "any cpu configuration" so that the executable can work for both 32 bit and 64 bit versions.
But after using ILMerge to generate a bundled exe, the resultant exe is only working in 64 bit system and for 32 bit system its showing
This version of output.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
The ILMerge command used:
C:\BuildTools\ilmerge.exe /out:proj1.exe output.exe 1.dll NLog.dll 2.dll targetplatform:v4 /ndebug
I tried to figure out any option in ILMerge to fix this, but do not find anything useful.
Any help on this will be of great help.
Figured out is the issue with Nlog.dll which was built in 64 bit environment. Fixed after converting it to Any Cpu

Ruby installer on Windows 7 64-bit machine

Can anyone please help me where to find Ruby 64-bit installer to be installed on Windows 7 or can I install 32-bit ruby 1.8.6 or 1.9 installers(only one) on a 64-bit machine without any problem?. Any recommendations or links for documentation would be appreciated.
Thanks in advance.
32bits Ruby can be installed in 64bits Windows versions thanks to WOW64 (Windows on Windows functionality)
There is no Installer for 64bits Ruby, and you will find a lot of complications in that front.
I recommend you use the upcoming RubyInstallers from official RubyInstaller website:
http://rubyinstaller.org/
(Will be redirected to RubyForge, locate Preview 2 installers there). Both 1.8.6 and 1.9.1 are available.
Also, if you want more step to step instructions, please take a look to some tutorials we have collected here:
http://wiki.github.com/oneclick/rubyinstaller/tutorials
Hope that helps.
As of March 2013, the RubyInstaller team produce a 64 bit Windows build of Ruby 2.0 . My thanks to them.
http://rubyinstaller.org/downloads/
But all 32 bit software works normally on Windows 7 anyway - that's worth knowing.
I have Windows 7 for quite a while now. Standard 32-bit Ruby 1.8.6 one-click installer works. I can both run Rails applications and "even" debug the code in NetBeans.
Downloaded from here
The Ruby team is still working on a 64-bit compiled version of Ruby for Windows. The 32-bit version works provided you do not need win32ole to work consistently. You will get a "Class Not Registered" error in some cases trying to instantiate a 64-bit OLE interface.
Latest I have seen on the ruby installers list is: http://groups.google.com/group/rubyinstaller/browse_thread/thread/b628af0efaaae5bd
This impacts some gems like virtualbox: http://github.com/mitchellh/virtualbox/issues#issue/37

Resources