Questions tagged [python-2.7]

Python 2.7 is a version of the Python programming language released in 2010. Use this tag for questions about using Python 2.7 in Ubuntu.

420 questions
46
votes
3 answers

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz (128kB): 128kB downloaded Running setup.py…
Lynob
  • 6,775
32
votes
6 answers

easy_install: command not found

I am trying to install MYCROFT on Ubuntu 18.04 following this: LINK cd ~/ git clone https://github.com/MycroftAI/mycroft-core.git cd mycroft-core bash dev_setup.sh I am getting this error: sudo: easy_install: command not found This error is…
pst007x
  • 8,210
30
votes
4 answers

python2.7 broken by weakref import error, please help!

I just updated from 16.04 to 17.10, and every time I attempt to run any python2.7 command, I'm getting this error: pip install --upgrade pip Traceback (most recent call last): File "/home/XXXX/bin/pip", line 7, in from pip import main …
30
votes
9 answers

How to install h.264 decoder?

I tried playing videos in movie player but only the audio could be heard. I tried playing the video with dragon player but here also only the audio could be heard. A message box appeared showing the following message: Python (v2.7) requires to…
sonakshi
  • 313
30
votes
9 answers

I run `sudo apt-get remove python2.7`, can I restore my Ubuntu now?

I wanted to remove and reinstall python2.7 interpreter on 12.04 But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever I've removed?
alvas
  • 3,027
26
votes
6 answers

Jupyter Notebook Installation

Is it possible to install Jupyter Notebook through apt-get install? For example, we can install numpy by using apt-get install python-numpy.
karfai
  • 383
24
votes
7 answers

Fatal Python error: Py_Initialize: Unable to get the locale encoding ... SyntaxError: invalid syntax Aborted (core dumped)

I installed anaconda by running the bash Anaconda-2.2.0-Linux-x86_64.sh command on my Ubuntu 14.04 system , which installed successfully, after which I was asked to export my new /home/username/anaconda/bin $PATH environment variable. On doing so,…
samirzach
  • 343
  • 1
  • 2
  • 5
24
votes
3 answers

ImportError: No module named sklearn

I installed scikit-learn on following these instructions Even when I try now to run again: sudo pip install -U scikit-learn I get this message proving again that installation is ok: Requirement already up-to-date: scikit-learn in…
user284234
24
votes
3 answers

How can I remove python 2.7 after installing python 3.3?

I have successfully installed python 3.3 on Ubuntu 12.10. Since I don’t need multiple versions of python, I want to remove the existing python 2.7. When I try to do that, using sudo apt-get remove python2.7 Ubuntu warns me that there are tons of…
22
votes
3 answers

Install uwsgi 1.2.5 via pip

Welcome, Currently I'm trying to install latest uwsgi on my VPS (Ubuntu 11.10) based on instruction from the site http://projects.unbit.it/uwsgi/wiki/Quickstart pip install uwsgi During compilation I see some errors: ... [gcc -pthread]…
Gie
  • 345
  • 1
  • 3
  • 9
20
votes
5 answers

How do I switch back to python2 after Anaconda set python3 as the default?

Recently, I installed Anaconda3-2.5.0-Linux-x86_64.sh on my 15.04 and ended up with this! :~$ python --version Python 3.5.1 :: Anaconda 2.5.0 (64-bit) :~$ python2 --version Python 2.7.9 :~$ python3 --version Python 3.5.1 :: Anaconda 2.5.0…
18
votes
6 answers

pip won't run. throws errors instead

I am running into problems when ever I run pip with any arguments or flags. I've tried doing apt-get install --reinstall python-pip but it does not help and am at a loss how to fix this Version of Ubuntu $ lsb_release -a No LSB modules are…
Jan Geep
  • 2,017
17
votes
8 answers

Python3 pip3 install broken on Ubuntu

I installed python3 and pip3 successfully on my Ubuntu16.04, but pip3 install is broken. How can I fix this problem? The error information of pip3 install is as follows: # pip3 install xlwt Traceback (most recent call last): File "/usr/bin/pip3",…
mlpy
  • 373
17
votes
4 answers

Problem installing Python-Dev

I am having trouble installing python-dev. It all started when I tried to install another Python package and got the error: SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev. I tried sudo apt-get install python-dev but…
16
votes
4 answers

pip install gives "Command "python setup.py egg_info" failed with error code 1"

I am trying to install python package rpy2 with pip install on Ubuntu 16.04: pip install rpy2==2.2.7 but get error message (see full output below): Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EuOI6K/unroll/ The…
Matifou
  • 766
1
2 3
27 28