Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
"I am using ubuntu 12.04 and by default python 2.7 is installed .I want python 2.6 .
When I used
apt-get install python2.6
I am getting error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python2.6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python-gdbm
E: Package 'python2.6' has no installation candidate
Thanks in advance."
As per the Ubuntu Wiki - Python Toolchain, Python 2.6 is no longer available in the repository.
Either:
You can simply build it from source by downloading the tarball from
Python 2.6.7
You need to find out some repository which might have an older version of
Python. One alternative is
https://launchpad.net/~fkrull/+archive/deadsnakes
You need to install the PPA
sudo add-apt-repository ppa:fkrull/deadsnakes
Run Update:
sudo apt-get update
And then install the version you are looking for
sudo apt-get install python2.6 python2.6-dev
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
When running a python script in Linux its throwing an error,
wine: cannot find '/root/.wine/drive_c/Python27/Scripts/pyinstaller.exe'
And installing wine from also fails.
OS: Kali Linux 2020
Python-version: 3.6
To install wine. We’ll first enable maltiarch, then update the system and finally install wine.
Follow the commands
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine:i386
sudo apt-get install wine-bin:i386
And that's all.
Verify by running wine --version .
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Improve this question
I am using Ubuntu and not able to install purl packages. I use pip and the github unstable version to install, but none works and it says permission denied.
How do I install purl package from Pypi. I need help.
Also, how are the different ways of installing packages like these other than apt-get and pip?
For installing system-wide packages, you need root rights, so try sudo pip install purl. You could also use virtualenv so you don't need to be root:
$ virtualenv venv
$ . venv/bin/activate
(venv)$ pip install purl
There's no purl on Ubuntu official repository, so you can install it by pip, using sudo command:
sudo pip install purl
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have pip installed on Windows (bundled with ActivePython), Debian 7 (installed via sudo apt-get install python-pip) and OSX 10.8 (installed via easy_install pip).
I want to download mercurial package without installing it (just a .tar.gaz archive) so i issued following documented command:
pip install --download=. mercurial
On Windows it works, but no file appears in current directory. On Debian and OSX it fails like this:
Downloading/unpacking mercurial
Running setup.py egg_info for package mercurial
...
lots of text, complains about no headers to compile
What i'm doing wrong? I was sure that pip is not supposed to actually run something with --download command, but it seems that on both Debian and OSX it is trying to install package after downloading :(.
It doesn't actually build and install the package, but it does do the egg_info step, if that's available for your package on your platform. You can see this from your output (or from ~/.pip/pip.log):
Running setup.py egg_info for package mercurial
…
Command python setup.py egg_info failed with error code 1 in /var/folders/fl/kgrflrj92pv1yjr_918x0t800000gq/T/pip-build/mercurial
Whether that step succeeds or fails, you still end up with nothing installed to site-packages. However, you may not end up with the tarball in your target directory unless it succeeds. (From a very quick test, it looks like 1.2.1 and 1.4dev1 under Python 2.7.2 both fail to copy the tarball to the target if it fails, while 1.4dev1 under 3.3.0 copies it ether way… But that may be misleading; it's possible that the difference has to do with whether the tarball is already in the download-cache or something…)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am trying to get that latest version of python on a Mac Mountain Lion. But the latest version is 2.7.4, but when I run brew install python it downloads the 2.7.2. What is going on?
brew install python
==> Downloading http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
File already downloaded in /Users/pietro/Library/Caches/Homebrew
==> Patching patching file Lib/whichdb.py
Hunk #1 succeeded at 91 with fuzz 1.
==> ./configure --prefix=/usr/local/Cellar/python/2.7.2 --enable-shared
==> make
==> make install
==> Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.24.tar.gz
File already downloaded in /Users/pietro/Library/Caches/Homebrew
==> /usr/local/Cellar/python/2.7.2/bin/python setup.py install
==> Caveats
A "distutils.cfg" has been written to: /usr/local/Cellar/python/2.7.2/lib/python2.7/distutils specifing the
install-scripts folder as: /usr/local/share/python
If you install Python packages via "python setup.py install",
easy_install, pip, any provided scripts will go into the
install-scripts folder above, so you may want to add it to your PATH.
Distribute has been installed, so easy_install is available. To update
distribute itself outside of Homebrew:
/usr/local/share/python/easy_install pip
/usr/local/share/python/pip install --upgrade distribute
See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
==> Summary
/usr/local/Cellar/python/2.7.2: 4803 files, 81M, built in 2.4 minutes
Have you updated Homebrew lately (by running brew up)? 2.7.4 is the current Python version in Homebrew.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I try to install mercurial on a centos vps-server with "yum install mercurial" but it says it needs python2.4 in order to install it. I have python2.6 installed. Is there a way to get past this?
You should not have messed with your system Python --
it is incrdible you can still login at all. Python 2.4 is ancient, but it is what is used in a lot of CentOS versions in the wild - what is installed by it's package management. Maybe you had installed a ",meta package" taht upgrades the system Python to 2.6, along with everything that depends on it (yum included).
Anyway, 2.4 would be sub-optimal to install mercurial.
Since your system is a mess already, you can simply easy_install mercurial into your system Python instead of trying to use yum for it.
"sudo easy_install mercurial" -- if you don't have easy_install, try "yum install setuptools" first. If this does not work, search on pipy.python.org for setuptools, install it manually - -and think seriously on rebuilding this machinne - you will have to do it soon.