Cygwin Not Recognizing Python Modules - python

I'm using Cygwin and Python2.7 and I have already installed some third party modules (PySide, PyGame) on my computer and when I run them using the normal GUI they work fine. But when I run python inside Cygwin it doesn't recognize the modules I already have installed. I'm using Windows 7 for this. Is there anyway I can get Cygwin to recognize these libraries?

You're question is not clear (e.g. what do you mean by "the normal GUI"), but it sounds like you installed Windows versions of Python and those extensions; those binaries won't work with the Cygwin version of Python.

Related

Cannot find python 3.5.x interpreter using .msi extension

I'm new to stack overflow. I was wondering if anybody knew if there was a .msi package for a python interpreter for python 3.5, I'm teaching a basic python class and wanted to be prepared for when it starts in a few weeks. There is a .msi packaged interpreter for 2.7 python on the official python.org downloads page but not 3.5 it seems. I am trying to use the interpreter in the community PyCharm IDE because I'm assuming most of the students will be using windows, not Linux (like I'm using). Any help would be greatly appreciated. Thank you in advance.
After Python 3.4.4 was released python.org stopped providing MSI installers for their Windows releases. Web-based, exectuable, and zipped installers are now provided for both 32-bit and 64-bit Windows releases. I'm not sure what the reason for this switch was, but an exectuable will install Python just fine. You can find Python 3.5.2 Windows executable installer at the bottom of this page.
All Python installs come with a Python interpreter. Make sure you select to add Python to your PATH during the install process. After Python finishes installing, open a Command Prompt, and type python to access the Python interpreter.

Convert script to executable, python not in registry

I am trying to convert a python script to an executable file.
I have tried cxFreeze and py2exe, but both told me that Python27 are not in the registry. I found several other questions that tell me to go to regedit and find the python folder, but it is not there. I tried going to HKEY_CURRENT_USER/Software and Python27 was not there.
Do I need to add it there to run the installer for cxFreeze or py2exe or is there another way?
Tools like PyInstaller package python scripts with the python run-time interpreter into standalone Windows applications. Installation of python (2.7.x) and all required python libraries is a prerequisite.
My suggestion is to install the latest Python 2.7 from this location: https://www.python.org/downloads/release/python-2710/. Make sure to choose the correct architecture, apparently 32-bit is the easiest to get working.
I fixed the issue. Apparently I accidentally installed 32-bit Python on a 64-bit machine. So I have to use the 32-bit installer because it installs the registry key in a different place. Thanks for the help anyways.

Installing Python2.7 over Python3.3

I'm running Windows 7 and I currently have python 3.3 installed on my system. I need to install the python 2.7 interpreter so that I can work with some outdated code, and I don't want to uninstall Python 3.3. Does anyone know how to do this without reinstalling IDLE and duplicating the system files that python33 and python27 have in common? Thanks.
As both the python versions are installed in different folders, so you need not worry about it.
You can use set "PYTHONPATH=%PYTHONPATH%;C:\My_python_lib" command in windows to temporary change the default python version to use.
While working on the projects requiring different python, you can use virtual environment approach. The following link will help you on this topic: http://docs.python-guide.org/en/latest/dev/virtualenvs/
This is widely used concept by python developers.
just install them in different folders.
When you install python 2.7 , it will be automatically be installed in a different folder just go into that folder and run python idle from there.

Installing kivy on portable python

Im trying to install kivy in my portable python with this installer:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#kivy
(Its a pre-compiled version of kivy)
When executing the file, it says "Python 2.7 version required", but since the python version im using is portable, I guess this is normal.
So my question is, is there a workarround to install a precompiled package in portable python? By somehow registering the portable python installation?
More (maybe innecesary) information:
My guess would be registering portable python in the system (Windows 7
64), but I already tried by changing the "path" enviroiment variable to point all
the required python paths without success.
I cant use the kivy modules to install it by compiling it on my computer because its too hard for me,(cython wont work, or then another of the 7 different modules will give me problems, untill i destroy my python installation. I already destroyed my
previous python installation while doing so, and had to reinstall
windows to get python working again -_-
Thats why I want to migrate
into portable python, but if this is not possible I will just go back
to normal python and install kivy on it...
The Kivy package on windows includes a portable python installation with Kivy installed.
Double click on the kivy.bat.
You will have a console have easy_install and pip available. Compiler is set to Mingw, and cython is already installed. Everything will be installed in the portable installation, not your system installation.
Enjoy :)
Note: if you want to see how we do, just edit the kivy.bat.

Installing Python packages with 64 bit Windows and Python 3.3

I've read that there's a nice text-to-speech package called pyttsx that can be included in my Python scripts. As soon as I try to install pyttsx things start falling apart fast. pyttsx is for Python 2.6 (2.7 maybe?) not 3.3. I have 2.7 and 3.3 (also Portable Python 2.7 and 3.2) installed but I can't get setuptools or easy_install to work. I got distribute partly installed but I'm might have seen some errors at the end of its installation so I'm not sure it's working and it won't install pyttsx anyway. There's a Windows .exe program that will let you install Python packages but it won't work for 64-bit Python. I've been searching for answers for days can can't come up with anything specific enough.
How do I install Python packages with 64-bit Python 3.3 on 64-bit Windows 7, or is that even possible?
Best source ever!
this man is a wicked fellow.
With distribute installed, launch the python.exe you want to use.
From within python interactive, run the following code:
from setuptools.command import easy_install
easy_install.main(["-U", "package"])
Substitute "package" for whatever you wish to install.

Categories

Resources