I want to install pinax on windows, I have to install PIL but can't do so
I'm on windows xp pro 32 bit, sp3, i have python 2.7
EDIT:
i don't know if this is caused by pil or not, but when i type
python scripts/pinax-boot.py ../pinax-env
i see
Install setuptools for windows and it will make your live easier. For example to get PIL you've got to say
easy_install pil
in your windows shell or
easy_install <package_name>
for some other package and get the latest version. Good luck!
Related
I have been trying to install pygame for 3.3 and 3.4 and can't find a way to install it probably with out it giving a error when I do pygame.init().
Is it because pygame.init() is not the proper code or is it because I installed it incorrectly? If so, can someone tell me how to install it?
You can find binary installations for pygame for python 3.4 on windows here. I'm not sure where you could find it if you're running a different operating system.
Check out downloads on their bitbucket repo (for windows):
https://bitbucket.org/pygame/pygame/downloads
On Windows: open your comandline and type:
pip install pygame
On Debian-based Linux type into your terminal:
sudo apt-get install python-pygame
I would recommend Gohlke's precompiled pythonlibs in wheel format :) pygame from Gohlke
I was never let down by those libraries and I used numpy, scipy, scikit-learn etc. (and pygame as well) extensively, which are one of the tougher to build on windows ;)
I have been trying to install pygame for 3.3 and 3.4 and can't find a way to install it probably with out it giving a error when I do pygame.init().
Is it because pygame.init() is not the proper code or is it because I installed it incorrectly? If so, can someone tell me how to install it?
You can find binary installations for pygame for python 3.4 on windows here. I'm not sure where you could find it if you're running a different operating system.
Check out downloads on their bitbucket repo (for windows):
https://bitbucket.org/pygame/pygame/downloads
On Windows: open your comandline and type:
pip install pygame
On Debian-based Linux type into your terminal:
sudo apt-get install python-pygame
I would recommend Gohlke's precompiled pythonlibs in wheel format :) pygame from Gohlke
I was never let down by those libraries and I used numpy, scipy, scikit-learn etc. (and pygame as well) extensively, which are one of the tougher to build on windows ;)
I thought the quickest way to get opencv running in my environment would be as simple as.
sudo pip install opencv-python
It seemed to work properly, I could import
import cv2
img = cv2.imread("a.jpg", 0)
but any other functions as "cv2.SURF" or even "cv2.imshow" are not loaded. So the pip install is giving just a basic opencv?
This issue was solved here
Opencv-python is not official. I tried to install it in a macbook running Ubuntu and, as you, I could import cv2, but some functions were not working.
From the opencv-python website:
MacOS and Linux wheels have some limitations:
video related functionality is not supported (not compiled with
FFmpeg) for example cv.imshow() will not work (not compiled with GTK+
2.x or Carbon support)
Now you might have problems trying to install the official opencv. You have to completely uninstall opencv-python before you attempt to install opencv.
This post is aging. I have Anaconda, and I have installed OpenCV as
conda install -c- conda-forge ffmpeg
pip install opencv-python
Maybe opencv-python had problems before, but now, is funcional
In the OpenCV docs, it is mentioned that sudo pip install opencv-python is an unofficial package for python.
Quote : This package contains only the OpenCV core modules without the optional contrib modules.
It is meant for OpenCV Python bindings only. Additionally, some functions still don't work for MacOS and Linux (cv2.imshow as you mentioned).
If you want the full installation, follow the steps here.
Suggest you to install Anaconda and use its package manager conda to install OpenCV 3.2.0 for linux-64, including OSX. The installation command is conda install -c menpo opencv3=3.2.0.
Checked the OpenCV 3.2.0 package available in Anaconda repository. It includes the features2d.so which is the extra module in opencv_contrib for supporting SIRF.
See this SO Answer for some more information.
Pillow for Python seems to be completely broken. Every image produces an IOError: cannot identify image file. Using Python 2.6 (where I had PIL installed) works great. Does anyone know where to get hold of PIL-1.1.7.win-amd64-py2.7.exe now that http://www.lfd.uci.edu/~gohlke/pythonlibs/ has moved on to only offering Pillow?
EDIT: Please note that PIL 1.1.7 on Python 2.7 using Windows 64-bit is confirmed working when opening the same files, we just cannot find the installer.
Here you can find PIL-1.1.7.win-amd64-py2.7.exe
This blog by Christian explains process of compiling PIL for 64 bit Python in Windows 7 64-bit with Visual Studio 2010. At end of the blog, zip file containing compiled files for PIL and dependencies is also provided
Install Pillow or PIL from repository (option 1 or 2). I would recommend you to use Pillow instead of PIL. If options 1 and 2 would not help use option 3.
You don't need a separate installer for windows.
To install for Windows you can use easy_install:
easy_install Pillow
or pip
pip install Pillow
or just get Pillow source from Pillow repository
unpack and run
python setup.py install
Online help for Pillow is here
I am having trouble getting OpenCV to work with Python on my Mac.
I have tried installing it with MacPorts and with Cmake (which I installed from MacPorts) using the methods found at here: http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port. I also had to download Xcode to make MacPorts work.
I ran sudo port -v install opencv +python27 and it seemed to work fine. However when I tried to import OpenCV in Python using import cv, the module could not be found.
If any of this information helps, I have OSX 10.6.8 Snow Leopard, python 2.7.3, and am trying to install OpenCV 2.4.3. I am not a very experienced programmer so my troubleshooting attempts are falling short of a solution.
Any help is appreciated. Thanks!
I haven't tried the MacPorts installation, but you might want to try this:
import cv2
from cv2.cv import *
I had the same problem, it seems that the OpenCV Python Bindings don't get installed without numpy preinstalled; you can use these commands:
sudo port uninstall opencv
sudo port install py27-numpy
sudo port install opencv +python27
As in this question: How to install Python 2.7 bindings for OpenCV using MacPorts