Error installing Mezzanine cms on Windows 7 - python

I am trying to install mezzanine on windows 7 64 bit. I have installed pil for python 2.7 64 bit from here.
I recreated my virtualenv, but i still get this error
i know that error is caused by pil but i installed it and it didn't fix it. I have a C++ compiler installed, i do a lot of C++, i have codeblocks and visual studio, so i don't think i need to install mingw or whatever.

From my personal experience - don't use 64 bit Python. It will create many problems. Use 32 bit version and in most cases you will be fine.

Related

Unable to install spacy 3.2.1 in windows 10 pro PC, with python 3.9.0 installed

I have a windows 10, 64 bit system that cannot be connected to the internet due to security reasons. I have downloaded spacy 3.2.1 with all its dependencies but while installing spacy, it shows error "this is not a supported wheel for this platform" please help me. Which version of python is required for spacy 3.2.1
what type or register is your machine? 32/64 bit? also is the wheel same as your register, please post both here.
If you have a 64 bit register machine, then use a 64/32 bit machine, in this case it seems you have a 32 bit machine.
It sounds like either you didn't download a Windows wheel or you are using 32bit Python, which is possible but a bad idea. (spaCy doesn't distribute 32bit Windows wheels.)
Use 64bit Python and make sure you downloaded the right wheels.

Installing 64 bit pygame on to python 2.7, 'python version 2.7 required'

I recently downloaded the unofficial 64 bit version of pygame from this site and tried installing it. While going through the process, it tells me 'Python version 2.7 required, which was not found in the registry.' and fails the installation. I'm currently running python 2.7.8 64 bit, and I don't know why it's refusing to install.
Please re-install python cause I think your python has some fault. then try to install pygame again.
OR
better install pygame 32 bit.
I had the same problem and solved it by executing a registry adding program from this post.

Python Markdown 64 bit installation problems

I'm working with Django for python.
I've tried to install Markdown 2.0.3 for python from here http://pypi.python.org/pypi/Markdown but it only has a windows 32 bit version and I have windows 7 64 bit.
When trying to install the 32 bit version an error appears:
No python installation found in the registry
I do have python 2.7 that works perfectly with Django.
Do you have any suggestions?
There is no 64 or 32 bit version of this module. Markdown is a pure-python module and you can install it that way. If the .exe doesn't work for you for some reason, you can always download the .zip version, unpack and run python setup.py install in that directory (provided that python is in your PATH)

Odd error when installing apsw on Windows

I tried to install apsw on another system, we got a multitude of errors, depending on how we installed it. First off, installing via exe gave us a "This application is not a valid win32 program" When we manually installed it from my system, we got a "ImportError: DLL load failed: %1 is not a valid Win32 application." And we have some complications with building the module too with sqlite3.dll and sqlite3.lib.
Disclosure: I am the APSW author
The APSW web site includes an entire page listing reasons why you'd use APSW over pysqlite. Also note that the pysqlite included in the standard library is even older than current pysqlite code.
Currently I only provide compiled Windows APSW extensions for 32 bit Pythons. You can run 32 and 64 bit Python on 64 bit Windows if you install them to different directories. However the bitness of extensions must match the bitness of the Python you are using it with.
Your short term solution is to also install 32 bit Python on the 64 bit machine. Alternatively you can compile a 64 bit extension yourself. In theory this is as simple as installing Visual Studio 2008 Express from http://www.microsoft.com/express/Downloads/#2008-All (note use 2008 version not 2010 version), downloading the APSW source zip from http://code.google.com/p/apsw/downloads/list and then running python setup.py fetch --all build --enable-all-extensions install
Edit (2010-Nov-07) If you have Visual Studio 2008 Professional installed then that should just work. Express did not include the 64 bit compilers originally although they are now included but Python's distutils and most of the rest of VS 2008 doesn't know about them. Email me if you want to do the build yourself and I'll give more detailed information. The next APSW release will include Windows 64 bit binaries for Python 2.6 and above including the Python 3 series.
Edit (2010-Dec-15) APSW 3.7.4-r1 now includes official 64 bit Windows binary downloads over at http://code.google.com/p/apsw/downloads/list
32-bit and 64-bit binaries are different animals, and can be mixed only if you know what you are doing.
Did you try installing python 2.6 32-bit on your friend's machine?
Why are you using apsw instead of the standard library sqlite3?

Installing PIL (Python Imaging Library) in Win7 64 bits, Python 2.6.4

I'm trying to install said library for use with Python. I tried downloading the executable installer for Windows, which runs, but says it doesn't find a Python installation. Then tried registering (http://effbot.org/zone/python-register.htm) Python, but the script says it can't register (although the keys appear in my register).
Then I tried downloading the source package: I run the setup.py build and it works, but when I run setup.py install it says the following:
running install
running build
running build_py
running build_ext
building '_imaging' extension
error: Unable to find vcvarsall.bat
What can I do?
UPDATE (May 2014): Like said by some comments and answers, PIL is currently unmantained, and the way to go now is to use Pillow (https://pypi.python.org/pypi/Pillow/, pip install pillow).
I found a working win7 binary here: Unofficial Windows Binaries for Python Extension Packages It's from Christoph Gohlke at UC Irvine. There are binaries for python 2.5, 2.6, 2.7 , 3.1 and 3.2 for both 32bit and 64 bit windows.
There are a whole lot of other compiled packages here, too.
Be sure to uninstall your old PILfirst.
If you used easy_install:
easy_install -mnX pil
And then remove the egg in python/Lib/site-packages
Be sure to remove any other failed attempts. I had moved the _image dll into Python*.*/DLLs and I had to remove it.
I've just had the same problem (with Python 2.7 and PIL for this versions, but the solution should work also for 2.6) and the way to solve it is to copy all the registry keys from:
HKEY_LOCAL_MACHINE\SOFTWARE\Python
to
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python
Worked for me
solution found at the address below so credits should go there:
http://effbot.slinkset.com/items/Adding_Python_Information_to_the_Windows_Registry
Compiling PIL on Windows x64 is apparently a bit of a pain. (Well, compiling anything on Windows is a bit of a pain in my experience. But still.) As well as PIL itself you'll need to build many dependencies. See these notes from the mailing list too.
There's an unofficial precompiled binary for x64 linked from this message, but I haven't tried it myself. Might be worth a go if you don't mind the download being from one of those slightly dodgy file-upload sites. Other than that... well, you could always give up and instead the 32-bit Python binary instead.
If you installed a win64 python, you need a win64 PIL. The official PIL download site only has win32, as far as I can tell. The win32 installer will not see your 64-bit python installation.
No amount of tinkering with permissions or redistributables will fix this. You could use the win32 python instead (the Win64 python is mutant anyhow; Microsoft decided that C 'long' should be 32 bits in their 64-bit world, so python 'ints' are only 32 bits in Win64 python).
Since sizeof(long)!=sizeof(ptr) in win64, porting C extensions can be problematic, and will not be the same as porting them to linux 64. E.g. it seems that Win64 numpy is experimental/broken whereas linux64 numpy has been fine for years. My recommendation is if you use win64, stick with win32 python. If you want 64-bit python use linux.
I think I had a similar problem in the past, with another python library. I believe that it was a windows permission issue. Try adding "Users" to your python directory, and give them full access.
Make sure you have the Visual C++ Redistributable package installed on your machine.
Just got this error msg on my 32 bit Windows - I read the FAQ here: http://pythonware.com/products/pil/faq.htm and this sort of indicates that Windows is funny. Looked again at install pg and downloaded the Windows executable for Python26 # Python Imaging Library 1.1.7 for Python 2.6 (Windows only) - and the _imaging module gets installed when you run this. Should solve problem. So you can't just do the python setup.py install routine on: Python Imaging Library 1.1.7 Source Kit (all platforms) (November 15, 2009).
I was having the same problem so I decided to download the source kit and install it according to how you posted above...
Downloaded Source Kit
Opened command prompt on that folder and typed python setup.py build
Then I typed python setup.py install
It worked perfectly!
Now, some notes: when I typed python setup.py build, I saw that Microsoft Visual Studio v9.0 C compiler was being used to build everything.
So probably it's something with your compiler not correctly configured or something...
Anyways, that worked with me so thank you!
Pillow is new version
PIL-1.1.7.win-amd64-py2.x installers are available at
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil
http://www.lfd.uci.edu/~gohlke/pythonlibs/
press contrl F
type Pillow‑2.4.0.win‑amd64‑py3.3.exe
then click and downloadd the 64 bit version
Pillow is a replacement for PIL, the Python Image Library, which provides image processing functionality and supports many file formats.
Note: use from PIL import Image instead of import Image.
PIL‑1.1.7.win‑amd64‑py2.5.exe
PIL‑1.1.7.win32‑py2.5.exe
Pillow‑2.4.0.win‑amd64‑py2.6.exe
Pillow‑2.4.0.win‑amd64‑py2.7.exe
Pillow‑2.4.0.win‑amd64‑py3.2.exe
Pillow‑2.4.0.win‑amd64‑py3.3.exe
Pillow‑2.4.0.win‑amd64‑py3.4.exe
Pillow‑2.4.0.win32‑py2.6.exe
Pillow‑2.4.0.win32‑py2.7.exe
Pillow‑2.4.0.win32‑py3.2.exe
Pillow‑2.4.0.win32‑py3.3.exe
Pillow‑2.4.0.win32‑py3.4.exe

Categories

Resources