Fedora Installation :: Cannot Install Python-virtualenv?

May 7, 2010

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...

View 6 Replies


ADVERTISEMENT

Debian Programming :: Virtualenv - How To Default To Python3

May 16, 2015

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.

python-virtualenv - Python virtual environment creator
python3-virtualenv - Python virtual environment creator
virtualenv - Python virtual environment creator
virtualenvwrapper - extension to virtualenv for managing multiple virtual Python environments

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.

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Projects
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

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!!!

export VIRTUALENV_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Projects

Finally the commands for the two versions of environments.

Python3 (default) "mkvirtualenv test"
Python2 "mkvirtualenv --python=/usr/bin/python2 test2"

View 0 Replies View Related

General :: Get Apt-get To Install Python Packages For A Different Version Of Python?

Oct 27, 2010

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

View 3 Replies View Related

Fedora :: Install Python 2.7 On 15?

Jul 29, 2011

i want IDLE on my Fedora 15, is this possible?

View 2 Replies View Related

Fedora :: Can't Install Python 2.6 On 15

Aug 13, 2011

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.

View 12 Replies View Related

Fedora :: How To Install Sqlite-python

Nov 18, 2009

I am trying to install sqlite-python package in my FC11 machine. I couldn't find an rpm to install.

View 2 Replies View Related

Fedora :: Install Python 3 And Idle In 12?

May 28, 2010

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?

View 9 Replies View Related

Fedora :: Install The Newest Version Python 3.1.2?

Apr 9, 2010

i got per default python 2.6.2 on my fedora 12. how can i install the newest version python 3.1.2?

View 2 Replies View Related

Fedora :: Install Python Spider Monkey?

Aug 19, 2011

I'm trying to install python spider monkey. I already have pkgconfig and nspr installed however when I runeasy_install python-spidermonkey it says

Running python-spidermonkey-0.0.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-hjTAdp/python-spidermonkey-0.0.10/egg-dist-tmp-sbqzO9
Traceback (most recent call last):

[code]....

View 4 Replies View Related

Ubuntu Installation :: Missing Python Files After Successful Install

Jan 5, 2011

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.

View 2 Replies View Related

Fedora Installation :: Python Error When Trying To Upgrade F13 To 14?

Nov 27, 2010

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.

View 3 Replies View Related

Fedora :: Install Screenlets Under 11 - Getting The Python(abi) Dependency Missing Message

Aug 18, 2009

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

View 14 Replies View Related

Fedora Installation :: Test An Application GUI With Python 2.4, 2.5 And 2.6. Python2.6 Is Native In F12?

May 21, 2010

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):

[Code]...

View 2 Replies View Related

Fedora Servers :: Install MySQLbd (a Module For Python To Connect And Access MySQL)?

Sep 28, 2009

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)

[Code]...

View 3 Replies View Related

Fedora Installation :: F12 DVD Openssl Doesn't Match Python Requirement / Resolve This?

Mar 17, 2010

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?

View 3 Replies View Related

Fedora :: Using Python 2.5 With Python 2.6 With F12?

Nov 30, 2009

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.

[URL]

View 3 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./program.py

instead of always having to do

sudo python program.py

What do I need to change?

View 5 Replies View Related

Programming :: Python - Get Text File Data Into An Array On Python?

Nov 30, 2009

I've already used line split stuff to transform my data into something like this in a text file:

Code:

['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']

[code]....

How can I get this on a python program so I can manipulate it as an array?

View 3 Replies View Related

CentOS 5 :: Cannot Install YUM And Python Iniparse To Install ImageMagick?

Aug 9, 2009

I have logged into root via SSHI followed instructions from here[URL]And here[URL]

View 1 Replies View Related

Software :: Python 3 Want Situation For Python 2 And Become Stop?

Jul 17, 2010

Python 3 want situation for python 2?Python 2 become stop?

View 1 Replies View Related

CentOS 5 :: Yum - Python-devel / Python Dependency

Jan 7, 2011

yum dependency problem please? I am running Centos 5.5. I need to install python-devel, but when I do so I get:

[Code]....

View 2 Replies View Related

Ubuntu :: How To Install Python 2.6.5

Jun 10, 2010

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.

View 6 Replies View Related

Ubuntu :: How To Install Python 3.1.2

Jun 19, 2010

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".

View 2 Replies View Related

Ubuntu :: How To Install Python 2.6 On 8.04

Oct 23, 2010

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.

View 2 Replies View Related

Ubuntu :: 10.10 - How To Install Python

Dec 23, 2010

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.

View 6 Replies View Related

SUSE :: Uninstall 2.6 - Install Python 2.5 ?

Aug 24, 2010

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?

View 3 Replies View Related

General :: How To Install Python In RHEL 5?

May 22, 2011

I want to install python in RHEL 5.0.

View 2 Replies View Related

Ubuntu :: How To Install Python-xml In Karmic

Feb 8, 2010

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.

View 1 Replies View Related

General :: Install The Python Module For Gnash?

Aug 5, 2011

How do I install the Python module for Gnash?

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?

View 2 Replies View Related

Ubuntu :: Install The MySQLdb Package For Python?

Feb 23, 2010

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?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved