I am trying to install PythonMagick. I am using Python 2.7 and running Windows 7. I have tried following the directions in the readme, but all of the configuration scripts are of type "file" and cannot be executed in either the python or windows command line. What should I do?
I recommend you use the pre-compiled installer from the Unofficial Windows Binaries for Python Extension Packages.
Just follow this link and download the right installer for your Python interpreter (in your case it will either be PythonMagick-0.9.10.win-amd64-py2.7.exe or PythonMagick-0.9.10.win32-py2.7.exe, depending on whether you've installed the 64 or 32 bit Python interpreter).
Related
I have installed Python 2.7.13 on my Windows 10 machine.
I went to http://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonmagick and downloaded both the 32 and 64bit versions:
PythonMagick‑0.9.13‑cp36‑cp36m‑win32.whl
PythonMagick‑0.9.13‑cp36‑cp36m‑win_amd64.whl
I ran the following command from commandline (admin permissions):
pip install PythonMagick‑0.9.13‑cp36‑cp36m‑win32.whl
I get the following error:
PythonMagick‑0.9.13‑cp36‑cp36m‑win32.whl is not a supported wheel on this platform.
I have tried with both the 32 and 64bit versions of Python 2.7, as well as both the 32 and 64bit versions of PythonMagick.
I tried downloading the Zip from ImageMagick, but the install made no sense to me (there is a reason I use Windows, not *nix)
By using the older WHL I was able to get PythonMagick installed and working.
PythonMagick‑0.9.10‑cp27‑none‑win_amd64.whl
I learned that there is a version of PyCLIPS based on CLIPS version 6.30.
The same (or similar) PyCLIPS version can also be installed via pip, see here.
On Linux, both approaches work fine, i.e. installing via git clone + setup.py, or via pip. On Windows, it worked only with cygwin 64bit. pip install pyclips failed (I suppose due to the missing '-DWIN_MVC' flag, see step 7 below).
However, I would like to have a PyCLIPS based on CLIPS 6.30 on a 'regular' Windows python, to be precise Python2.7 32 bit on a Windows 7 64 bit. I have visual studio express 2008 installed.
What I tried:
git clone https://github.com/almostearthling/pyclips.git
cd pyclips
git checkout pyclips-1.1_clips-6.30
delete the file clipssrc
download the CLIPS 6.30 source code from the official repository
create a new folder a newly created folder clipssrc inside the pyclips folder
extract the contents of the core folder into the clipssrc folder
insetup.py at around line 738, add '-DWIN_MVC' to the CFLAGS list
install patch utility for windows and add it to PATH
start visual studio express 2008 (32 bit) command prompt
cd into the pyclips folder
run python setup.py build
If the built went through (it should) install via python setup.py install
Although the built and installation went through, large integers still cause an error, as they did in CLIPS before version 6.30. This means CLIPS is not able to cope with integers that are larger than 2147483648 (sys.maxint+1 on python 2.7 32 bit).
During compilation with visual studio 2008 I got the Warning "conversion from '__int64' to 'long', possible loss of data". I changed the types of the corresponding variables to long long. The Warnings disappeared but the error with large integers still exists.
How do I install PyCLIPS based on CLIPS 6.30 on Windows 7 64 bit for use with a 32bit Windows Python 2.7 ?
EDIT 1:
I tried to install it with cygwin 32 bit - and it did not work. So maybe it is a 32/64 bit issue? The 32bit Version of clips (installed via the official installer) works fine on my Windows 7 64 bit...
EDIT 2:
It seems to work with python interpreters that have a sys.maxint of 9223372036854775807 but not with interpreters that have a sys.maxint of 2147483647. Interestingly, even the 64bit Windows Python has the latter value.
Summary:
cygwin Python 64 bit, maxint: 9223372036854775807, no error
cygwin Python 32 bit, maxint: 2147483647, error
Windows Python 2.7 32 bit, maxint: 2147483647, error
Windows Python 2.7 64 bit, maxint: 2147483647, error
I'm us using Linux Mint 17.1. I have installed Anaconda Python following the installation procedures given in the official webpage of Anaconda, but the linux is not detecting the installation and it uses the default python. Please suggest some thing.
At the end of the Anaconda installation, you are asked
Do you wish the installer to prepend the Anaconda2 install location
to PATH in your /home/muenker/.bashrc ? [yes|no]
Under Linux, the default choice is "no", resulting in a system that doesn't "know" anything about Anaconda. When you type
python
the python interpreter that comes with the Linux distribution is found. You could either:
Choose yes, but that means the Anaconda python is used instead of the default python interpreter which could have some side effects with the operating system
from your home directory call anaconda2/bin/python but this is not very convenient
add the path to the Anaconda bin directory temporarily by using
export PATH=~/anaconda2/bin:$PATH
There is some more info at
[https://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntu]
Hope that helps!
I'm trying to install pycurl. I have downloaded the tar.gz file from here:
http://pycurl.sourceforge.net/
I get this error when using easy_install:
AssertionError: please check CURL_DIR in setup.py
I then tried to manually install the pycurl.exe's from this site:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Every single one of these returned this error:
"Python versions 2.X required, which was not found in the registry."
I'm at a loss. Can't easy_install, can't manually install. How should I install this module? Thanks!
I think you should first download libcurl (I think from here) http://curl.haxx.se/dlwiz/?type=devel&os=Win64
then extract it to some directory (using 7zip)
Then in setup.py set the CURL_DIR parameter (there is comment there on windows users) or use the --curl_dir paramter (see also code there).
hope it will help
2 possibilities:
haven't tried that one, but you can install python either for all users, or just me, with just me being the default. if you changed that to all users, then a few python libs i have seen (comtypes comes to mind) won't see your python install. you can reinstall as just me, or there are a few hacks here on SO.
did you try both 32 and 64 bit python versions? the library version you install has to match the python install, not necessarily the windows install. you can have a 32 bit python installation on a 64 bit OS installation, but if you try to install the 64 bit library on that combination, it won't see python.
I wrote some python code on my mac and how I have to transfer it over to a windows computer. This is frustrating beyond words. I installed Python 2.7 x32, then I uninstalled it, then I installed Python 2.7 x64. My python script depends on xlrd and xlwt, and some other downloaded modules. I would like to install those using easy_install or pip or any way that is easy for somebody who doesn't know too much about the really intricate workings of a computer. As of now, if I do this:
C:\Windows\System32> python
I get:
'python' is not recognized as an internal or external command operable program or batch file.
Would someone suggest a next move for me?
I did a bunch of google-ing and stackoverflow-ing and seem to have landed here, I'm not sure how to download something from here. For example, how would I download Pip, and also, which one would I download?
People say that a person should download and install this, how would I do that?
I'm familiar with terminal, what would I type into cmd?
The reason that I things were not going well for me was because I was using a mixture of Python 2.7 (32-bit) and Python 2.7 (64-bit). After more researching I found that even though my Windows 7 was 64 bit, I didn't have to download the 64-bit python. In fact, the 32-bit python was more compatible with other programs. So I clicked around and uninstalled python and everything else that had the name 'Python' in it from my Add/Remove programs menu. This took about 10 minutes. Next, I downloaded the 32-bit Python 2.7. After this, all of the packages that I download, I made sure that they were 32-bit and not 64-bit.
Also, very important, I went to my 'Environment Variables' (google how to get there) and added the directory of where Python27 was installed. To do this you can follow this guide. The last thing that I did was add ;.PY to the end of PATHEXT.