I've been trying to download Kivy. In the instructions here, (http://kivy.org/docs/installation/installation-windows.html) Kivy appears to be downloaded as a package, and then unzipped. When I tried to download Kivy, it appeared as a compressed folder, but didn't have the option to unzip it. If anyone has any idea what's going on, feedback would be greatly appreciated.
I regularly have trouble installing python modules. Normally I use easy_installer, but even that seems to choke occasionally. However, without fail this has always worked for me:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
It's an unofficial host for module binaries. Just download the relevant files, run them and you should be good to go. :)
Related
I have a really simple Python script. It’s written in a single file however I did have to install two things using pip. I’ve created this on Mac and I need to somehow compile it into a runnable application on windows. I’ve spent hours trying to use pyinstaller to make it into an exe file but I don’t think the dependencies are included in that ... I’ve also tried creating a virtual environment using venv but that doesn’t work either. I first tried using pyinstaller on Mac which was really easy but didn’t run at all when transferred it to windows. I then have been trying to do it on windows but it’s just very difficult and it’s just one error after another. I finally managed to build the app on windows using pyinstaller but it said “failed to execute script ...”
So does anyone know any simple way to make it into a runnable application? Doesn’t have to be an exe.
Thanks in advance.
Have you tried using py2app. To install it, type: pip install py2app.
Check out This link for more information.
I finished writing the code for a simple game using Kivy. I am having a problem converting it to Android APK, since I am using a windows computer. From some earlier research I got to know that using a Virtual machine is recommended, but I have no idea on how to download and use one :(, and if my slow PC can handle it... please help me. If possible, kindly recommend another way to convert to APK.
I am a beginner at coding as a whole, please excuse me if my question is stupid.
you could just try downloading a virtual box and installing linux operating system or you could directly install it and keep it a drive called F or E and you could just install python on that and all the required pakages and start the build using buildozer as it is not available for windows. So try doing it. But I need to do it just now. Tell me after you have tried that cuz there are a lot of people online on youtube who would heloo you doing that work
I have a problem when trying to install Pygame. My Python is installed under Program Files in the C drive (C:\Program Files\Python). My registry wont show, and I have no idea what I shall do. Should it go under site-packages or what? Believe me, I've been searching around for ages in order to solve this. Please come with specific steps on what I shall do. Sorry, I'm new to this (as you can see). Correct me if I use registry wrong :)
First visit here.
Be sure that you have installed numpy properly and then check once more that you have downloaded the proper pygame binary for your specific OS (x32, x64).
If everything of the above fails, un-install python and reinstall it (again using the proper version).
I had some similar issues with PIL and after reinstalling python it fixed.
For picture issue: You can upload it to your dropbox or google drive and share here the link.
Edit: Be sure that python is in the environment variables path of windows
edit2: which version of python do you use. Python 2.x has some incoherences with python 3.x so check that too.
I'm trying to install a package, pybrain, from its github website. It does not have nicely packaged archive files or executables, so I don't know how to install it via WPPM.
Do I still do python setup.py install, or do I copy the pybrain folder manually to the site-packages? I figured one thing I can do is to
python setup.py sdist
to generate an archive file, and then use WPPM to do it. Is this the "best" way?
Thanks in advance!
PS: Sorry that I don't have enough reputation to initiate the tag of "WinPython".
Most packages that are configured properly with distutils will automatically place themselves in the correct location with "python setup.py install"
Having had similar issues, especially sitting behind a corporate firewall, I found the easiest way to install things from github repositories is to download the repository as a zip file, then use the WPPM to add the package from there. Github repositories give the option of downloading as a zip on the right hand side. I've found that the package manager handles everything correctly from there.
I want to be able to use the PIL library on a web hosting machine. The machine has Python 2.4.3 installed, but not the PIL library. I tried downloading the PIL source and putting the PIL folder into my directory. It kind of works, except when I need to do some actual image processing, which brings up an ImportError, saying that "The _imaging C module is not installed". Googling this, it seems like I would need to throw an _imaging.so file into the PIL folder, but I couldn't find a precompiled one online.
At this point, I'm not sure if I'm even on the right track. What should I do from here? Any help is appreciated.
Thanks.
You need to compile that module. Running the setup.py install command should do it for you, provided the host has a working compiler and the required libraries. You can use virtualenv to have it installed somewhere where you have rights to put files (by default it would try to install it system-wide).
If it doesn't have a working compiler and right libraries and header files, then you need to either compile it on another computer with the same architecture and copy it, or find the packages for whatever operating system your host is running and extract the right files from them.
By the way, just asking them to install PIL could work too!
I know this isn't a programmatic answer but ... you should switch webhosts.
There is no good reason to be using Python 2.4 and dealing with old stuff when so many problems have been fixed already. I recommend WebFaction but any host running a modern OS/Python installation is fine (Ubuntu is really the easiest at this point).