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.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am using Pycharm IDE. I am doing a project that requires an older version of Tensorflow. I tried installing in from within pycharm marketplace using specified versions, but it says that there is no matching distributions found. So, I downloaded Tensorflow v1.8 sourcecode from Github as a zip. Now I want to install it in pycharm. How do I do that?
Having an IDE with things like a 'marketplace' is nice in theory, but you'll always end up having to resort to the commandline. Try to open the Terminal in PyCharm, it should activate with the python environment of your project. Then install tensorflow 1.8 with pip install tensorflow==1.8.0
For the latest version
pip install tensorflow
For the previous ones
pip install tensorflow==THE VERSION YOU WANT
pip install tensorflow==1.5
Or with pyCharm
Preferences> Project: PROJECT NAME> Python interpreter
Click on the + symbol at the top left and look for the package you want to install
(At the bottom right you can also check the Specify version box and choose the version you prefer)
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 4 years ago.
Improve this question
I want to install matplotlib on my new mac but am unable to because six is a "distutils installed project", what does this mean? I typed the following:
sudo -H python -m pip install -U matplotlib
which first throws all the usual jargon of "caching this; downloading that" And then, BOOM there it is; the error:
Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
In order to understand the error you have here, you'll need to understand what distutils are; They, in short, are ways to distribute and install Python extensions and packages. You can learn more about them here. six is a way to wrap differences between Python 2 and 3.
That being said you can simply add --ignore-installed to your parameters like the following.
sudo -H python -m pip install -U matplotlib --ignore-installed
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 10 years ago.
Improve this question
I am trying to run a Python script on a Windows 7-64 bit machine using Cygwin. I can't get the newest version of Python installed in this environment.
Question:
How do I uninstall Python 2.6
Which Python package should I use for Cygwin?
To uninstall the Python interpreter (or any other package) from Cygwin:
Run the setup.exe file (the one you downloaded for installing Cygwin)
Make sure the installation folder matches your Cygwin location
On the package selection screen, find the package you want to uninstall (here python)
Change its state from keep to uninstall by clicking on it 3 times
Click next to begin the uninstallation
At the moment, Python 2.7 has not been ported to Cygwin. The latest Python 2 version is 2.6.8-2.
However, Python 3.2 has been ported, so you should check if your script is compatible with it.
You can have Python 2 and 3 installed at the same time on Cygwin – the first can be fired with the classic python command, and the latter with python3.
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