What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-22 07:40:09
linux uninstall python
# Remove python2 sudo apt purge -y python2.7-minimal # You already have Python3 but # don't care about the version sudo ln -s /usr/bin/python3 /usr/bin/python # Same for pip sudo apt install -y python3-pip sudo ln -s /usr/bin/pip3 /usr/bin/pip # Conf... Add solution -
SQL 2021-10-17 12:46:07
populate sql table with random data
>>> import random >>> random.randrange(0, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mj/Development/Libraries/buildout.python/parts/opt/lib/python2.7/random.py&qu... Add solution -
Python 2021-10-15 02:15:04
unable to execute 'x86_64-linux-gnu-gcc': No such file or directoryunable to execute 'x86_64-linux-gnu-gcc': No such file or directory
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pil python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus py... Add solution -
Python 2021-09-23 03:26:08
from odoo.http import Controller, dispatch rpc, request, route
{"jsonrpc": "2.0", "id": null, "error": {"message": "Odoo Server Error", "code": 200, "data": {"debug": "Traceback (most recent call last):\n ... Add solution -
Shell/Bash 2021-09-21 13:04:03
Please install paramiko on your system. (sudo pip3 install paramiko)
administrador @ admin: ~ $ python pysftp_tester.py Traceback (última llamada más reciente): Archivo "pysftp_tester.py", línea 1, en <módulo> importar Archivo pysftp "build / bdist.linux-x86_64 / egg / py... Add solution -
Shell/Bash 2021-09-09 16:11:02
pgadmin ubuntu
sudo apt-get update sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev mkdir pgAdmin4 cd pgAdmin4 virtualenv pgAdmin4 cd pgAdmin4 source bin/activate wget https://ftp.postgresql.org/pub/pgadmi... Add solution -
Python 2021-09-05 12:36:01
delete all folders for python 3.7 make install on ubuntu
# The following commands will remove your make altinstall-ed python: rm -f /usr/local/bin/python2.7 rm -f /usr/local/bin/pip2.7 rm -f /usr/local/bin/pydoc rm -rf /usr/local/bin/include/python2.7 rm -f /usr/local/lib/libpython2.7.a rm -rf /usr/local/lib/p... Add solution -
Python 2021-09-01 05:25:02
deploy django app on godaddy
For future reference, as I assume you have moved on... It is possible to use Django on GoDaddy hosting, using VirtualEnv as they recommend. Python 2.7 is natively installed and works fine, though it isn't the default version to be run. Enable SSH access... Add solution