Got following error after import turicreate /home/prod/anj/learn/ml/mlvenv/lib/python3.7/site-packages/pandas/compat/__init__.py:117: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError. warnings.warn(msg) Fix: I have ubuntu: For it sudo apt-get install liblzma-dev Reading package lists... Done Building dependency tree Reading state information... Done Now I will go to
My default python is 2.7 and I want python 3.7 along with it: Go to opt directory $ cd /opt Create a directory $ mkdir python3 Download Python 3.7 $ wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz Extract the python 3.7 tar file $ tar xzf Python-3.7.4.tgz To compile the source go to $ cd Python-3.7.4 To get release build with all
I have Ubuntu and it has python 2.7 as default. Along with it I have configured python3 as well. To create a virtual environment for a python 3 project I have executed following virtualenv -p /usr/bin/python3 mlvenv It created a virtual environment named mlvenv Now to activate it source mlvenv/bin/activate To confirm python --version
Top command is used to check server processes in Linux. Top command shows all running processes in current host. It displays the current system information and the processes information which includes: host-up-time average load tasks running no. of users logged in no. of CPU processes RAM utilisation lists all the processes running/utilized by the users
# To check size of partition df -h # To check size of directory du -s -h /var/log/ #To check every directory and file sizes under a dir. du -s -h /var/log/* #To check individual size du -s -h /var/log/lastlog
Error c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory #include ^ compilation terminated. Traceback (most recent call last): File “”, line 17, in ———————————————————————- Here it is the problem of python devel For centos use “sudo yum install python-devel.x86_64” For Ubuntu use “sudo apt-get install python-dev”
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Try the –with-gmp, –with-mpfr and/or –with-mpc options to specify their locations. Source code for these libraries can be found at their respective hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also http://gcc.gnu.org/install/prerequisites.html for additional info. If you obtained GMP, MPFR and/or MPC from
Sometimes we want to work in detached mode to prevent connection loss during long running processes. The ‘screen‘ command detach a long running process/program/shell-script from a session and is re-attached at a later time. The process that was initiated from the screen is running and managed by the screen even when the session is detached.
I am upgrading from 2.4 to 3.3.3 Pre-requisite: JDK 1.5 or above, JAVA_HOME set in environment variable Step 1) Download Maven-3.3.3 binary from a repository using the wget command. wget http://mirrors.sonic.net/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz Step 2) Untar the downloaded binary. tar -zxf apache-maven-3.3.3-bin.tar.gz Step 3) Move the application directory to /usr/local sudo cp -R apache-maven-3.3.3 /usr/local Step 4)
A php class to access mysql. It uses mysqli How to use: Include this Db file. create a Database object like $db = new Db(); For any query; $sql = ‘Mysql query’; $db->query($aql) $tableObject = new stdClass(); $tableObject->field_name1 = ‘field_value1’ $tableObject->field_name2 = ‘field_value2’ $tableObject->field_name3 = ‘field_value3’ $tableObject->field_name4 = ‘field_value3’ // Insert $db->insertObject(‘table_name’, $tableObject); // Update.