I get an error when trying to install python-virtualenv package:
Quote:
# yum install python-virtualenv
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
[Code]...
AFAIK, python-virtualenv package does not really require any development packages (at least in ubuntu, debian, opensuse). Is it a bug? I didn't find anything with search engines...
I have a few questions regarding virtualenv and virtualenvwrappers. The following packages are available, I am currently using python3 for my project. However I would like have the option to use either 2.7 or 3.x for my virtual environments.
Given this do I install both python-virtualenv and python3-virtualenv? What is that third package all about, does virtualenv support both versions by chance? I chose to install both python-virtualenv, and python3-virtualenv (not sure if both were actually needed). These packages where installed via apt-get.
So far so good, "virtualenv test" creates a python2 env, and "virtualenv --python=/usr/bin/python3 test2" creates a python3 environment.
After installing virutalenvwrapper (also installed with apt-get) is where I hit the problem. In an attempt to default ot python3 I added the following to my .bashrc file.
Sourcing the .bashrc file cases the following error. What am I missing here?
/usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named 'virtualenvwrapper') virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is set properly.
Further searching found a post on stackoverflow which led me to change the .bashrc to the three lines below. After this change it all works!!!
in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work
I can't install Python 2.6 on Fedora 15 - I have only Python 2.7. Also I can't add EPEL repository to try to install: yum install python26 I didn't find any info about how can I solve this problem.
how can i install python 3 and idle in fedora 12? yum search for any plausible variation on python3 (python-3, Python-3.1, etc.) that i could think of yields nothing, same in add/remove software. so i got the tarball from python.org and followed book instructions on it (summerfield's python 3, p. 4), namely unpack it, run './configure', run 'make' and finally run 'make install'
in my add/remove programs window, for idle, it says i have the one for python 2.6 installed, but i can't find where to open the program. but i'd like to use 3.1.2 python anyway. additional note: if i type python -V i get Python 2.6.x (can't remember the last digit, i think it's 2), and if i type python3 -V i get Python 3.1.2. so, how do i get python 3 installed and idle for python 3 running?
I ran 'sudo apt-get install python', which completed successfully. According to [url, this should have created the directory /usr/lib/python2.6, but I do not see any such directory.
This is causing problems:
I've tried 'apt-get purge python' and then reinstalling but this has not resolved the issue.
I'm encountering a python error in the beginning of the upgrade. See screenshot. How can this be solved or should I indeed file a bug report? Problem is that except for taking the picture, I've been unable to save the info.
i wanted to install screenlets under fedora 11 but python wont let me, is there a way to do it i keep getting the Python(abi) dependency missing message I've tryed both 32 and the 64 bits version, even the noarch i found here with no results at all
I am driving Fedora 12 and need to test an application GUI with Python 2.4, 2.5 and 2.6. Python2.6 is native in F12 at /usr/lib... and I have alt-installed 2.4 and 2.5 at /usr/local/lib... Site-packages directories for 2.4 and 2.5 are empty. I have tried different tricks to install gtk-2.0 and pygtk in the site-packages of 2.4 and 2.5. But could not find a working solution.
My latest trial was to download Fedora 7 live and copy from its python2.5 gtk-2.0 and pygtk.* to F12:/usr/local/lib/python2.5/site-packages. Results were as follows:
Python 2.5.5 (r255:77872, May 13 2010, 17:15:51) [GCC 4.4.3 20100127 (Red Hat 4.4.3-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pygtk >>> import gtk Traceback (most recent call last):
I was trying to install MySQLbd (a module for python to connect and access MySQL) I followed these steps for installation[URL].. but while I am getting some installation errors. When I try to run $ python set.py build I am getting the following errors (I removed few errors as I can post more than 10000 characters here)
I upgraded from F11(x86_64) to F12 with no reported errors. (expected an update session to follow, but it didn't.) Tried a manual "yum update" and it aborted with a notice that libssl.so.8 was not found (required by python-2.6.2). I didn't find anything useful at wiki.linux.duke.edu/YumFaq.
The DVD installs python-2.6.2-2 (8/21/09) and openssl-1.0.0-0.10.beta3 (10/16/09). /usr/lib/libssl.so.10 is a symbolic link to libssl.1.0.0. libssl.so.8 is not found, really. I thought of replacing openssl with one from F11 but it was required by too many packages - couldn't remove.
I tried to find a later rpm of python, but couldn't locate any Fedora directories with individual packages.
I've searched the web and the forums. What am I missing?
Fedora 12 officially uses Python 2.6, good. But the Google AppEngine still goes by Python 2.5 and is showing import errors while i try to start the SDK. Here is the stack trace.
I tried to downloaded and installed from the Internet directly but it gives me error message. Also I tried to downloaded it from Ubuntu but when I go to the software package and click on python it show me hundreds of python types. I'm a beginner and I need to use Python for my class this summer, I only need to use python GUI. how to install python on Ubuntu and also how to find it after installation.
I've done command line work in Linux, so I need a refresher.I have downloaded and extracted Python 3.1.2. How do I install? All of the HELP and README files are a little vague for me. but when I type in "./configure" in a terminal session, it says "command not found".
how to install Python 2.6 on Ubuntu 8.04, I checked and the latest ver. on the ubuntu repository is 2.5 I need 2.6 I just compiled it using the following guide.[URL] I just didn't get how to set my PATH I followed all the steps that were there exactly.
I am super new to Linux and Ubuntu. I am trying to install python and I downloaded it from the website. I do not know how to actually install it though. I have Ubuntu 10.10.
I am fairly new to Linux. I have OpenSuse Desktop 11.3. For a software package I need to install, I have to have Python 2.4 or 2.5 - it will not run with Python 2.6. I cannot find any way in Yast to install the older version of Python. So my question is this: How do I first uninstall Python 2.6 so I don't screw anything up, and then install Python 2.5? Is it as simple as using Yast for the uninstall, then finding the tarball for 2.5, unpacking it, ./configure, sudo make, sudo make install?
I need to install python-xml on my kubuntu 9.10 but I cant do it with apt-get.I downloaded it from somewhere else but still I cant install it because of python 2.6.
But apart from that, what basic concept am I not understanding about installing packages on Linux?
I am used to installing packages using package managers - mostly apt-get and zypper. I have occasionally installed from source, often with no trouble. However I recently installed Gnash and discovered that it has a Python binding that must be compiled from source and this has led down a rabbithole making me feel stupider at each turn.
First, I attempt do a ./configure --enable-python in the gnash source dir. This ends up failing with an error that
package pygtk-codegen-2.0 isn't found
The lead developer, Rob Savoye, was kind enough to point me at packages.debian.org, telling me I just need to locate this package. After many failed searches, I found that the python-gtk2-dev package contains this ... file? script? Great, but I couldn't figure out how to obtain the python-gtk2-dev package. It doesn't exist in any of my openSUSE configured repositories.
So I headed to the GNOME site and searched, found that the PyGTK package contains pygtk-codegen. Download the tarball, cd, ./configure, and this fails because I don't have GLIB. After some more searching I use zypper to install glib2-devel (libglib-2.0 was already installed), and now PyGTK fails to configure because I don't have GObject.
Find that, download tarball, cd, ./configure, fail. I don't have gobject-introspection-1.0, apparently. I DO have gobject-introspection installed, and it's version is ≥ 1.0, but that's what the script says.
So I will readily admit I am new to Linux, but I have to be missing some basic step here. Can anyone give me a clue about any of the above? Is it normal to have to install one dependency after another like this? Is OpenSUSE the wrong distro? What would make this process not so horrible?
I am trying to install the MySQLdb package for python and the instructions tell me that I need to add mysql_config to my path. This file does not appear to exist in my mysql installation, or anywhere on my machine. I installed mysql-server from the ubuntu package manager, and then did a search of my system for that file.
Code:
sudo find / -name mysql_config
This gave me no results. where I can find this? Is it part of some extra toolkit for mysql?