Tags "python" Result

How to restore after accidentally apt-get remove python

Yeah. I've done this. It was stupid. I did not know it's going to pull its dependencies with it, only wanted to install python 2 and 3 from scratch (because of this problem: https://askubuntu.com/questions/897355/how-to-change-default-idle-for-python). Now, I can still use my terminal, checked these answers: https://askubuntu.com/questions/74126

it1352 3 2020-09-06

"No such file or directory" error with Boost Python

I've installed boost python from ubuntu 9.04 repositories. I've successfully run Build a Simple Program Using Boost from the tutorial, so I know that boost python is installed on my system. However, the program below returns an error: #include <string> namespace { // Avoid cluttering the global namespace. // A couple of simple C funct

it1352 6 2019-05-09

ImportError: No module named mysql.connector using Python3?

trying to import python-mysql.connector on Python 3.2.3 and receiving an odd stack. I suspect bad configuration on my ubuntu 12.04 install. vfi@ubuntu:/usr/share/pyshared$ python3 Python 3.2.3 (default, Sep 25 2013, 18:22:43) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> impo

it1352 0 2020-08-14

How to downgrade python version on CentOS?

I have a dedicated web server which runs CentOS 6.6 I am running some script that uses Python SHA module and I think that this module is deprecated in the current Python version. I am consider downgrading my Python installation so that I can use this module. Is there a better option? If not, how should I do it? These are my Python installation

it1352 2 2020-09-30

ImportError: cannot import name HTTPSHandler using Brew

I'm having some troubles while setting up my python env... I installed python over brew but when I try to install something with easy_install or pip I get this errors, in this example i tried to install an package with pip... I'm using a Macbook with Mavericks, python 2.7.8... Thank you! :) $ sudo pip install test ERROR:root:code for hash md5 w

it1352 1 2020-08-12

python -v prints out garbage

It looks like python works perfectly... $ python Python 2.7.8 (default, Aug 24 2014, 21:26:19) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> But python -v prints out all sorts of junk: $ python -v # installing zipimport hook import zipimport #

it1352 0 2020-08-11

Install and run Mac Python Open CV

I have python installed, python 3 installed, installed opencv using homebrew, also installed python through the GUI, followed various instructions pages and comments written several years ago. I'd like to use OpenCV to detect brightest and darkest pixels and draw line between them to carve the image up into cells based on the bright and dark point

it1352 0 2020-08-15