Skip to main content

How to install python pip

Install pip using get-pip.py

1. If you haven't installed python already:

  • $ sudo add-apt-repository ppa:deadsnakes/ppa
  • $ sudo apt-get update
  • $ sudo apt-get install python3.6

2.  Get a copy of get-pip.py

2.1. The download will start automatically
2.2.  Navigate to the download folder in your terminal
2.3. Open terminal from here
2.4. Run
$ python get-pip.py

3. That's it! Now you can easily install python packages.

Examples:
$ pip install jupyter
$ pip install django==2.0

Install pip using python3 setuptools

1. Install setuptools on your linux machine
$ sudo apt-get install python3-setuptools
2. Install pip using easy-install
$ python -m easy-install pip

Bonus

If you get "$ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1"
Run the following:
$ sudo apt-get update
$ sudo apt-get install python3-dev
$ sudo apt-get install python-dev
$ sudo pip install jupyter

Comments

Popular posts from this blog

Gunicorn vs NGINX Explained

Web applications typically disseminate information via three server layers: Web server   - First layer: Receives request from client(web browser) Application server - 2nd layer: Receives requests from web server if the client is requesting dynamic content Database - 3rd layer: Receives database queries from web framework's request handler methods In this example , nginx is the web server, gunicorn is the application server (interface between nginx and web framwork request handling function) and the database can be assumed to be a lightweight sqlite3 database. Example: Django architecture Alternatives to nginx : Cherokee Apache HTTP server Alternatives for gunicorn: Apache Mongoose

How to transfer a gitlab repository into github

Method 1: Use the linux command line 1. Assume you have a gitlab repository called matric2016.git 2. Create a new working directory: $ mkdir myproj && cd myproj $ git clone gitlab@gitlab.com/Banzyme2/matric2016.git $ cd matric2016.git Make sure you create a github repository with the same name as the gitlab repository ,i.e. matric2016  3. Clone your project into github as follows:  $ git remote add github https://github.com/Banzyme/matric2016.git  $  git push --mirror github Method 2: Using the github dashboard repository import 1. Click "+" next to your github profile. Select import repository 2. Fill out the import form  as follows

Too much abstraction

Abstraction refers to the method of 'hiding' implementation details in the process of software development. This technique is useful to prevent code duplication in a computer application. Usually, this is achieved by the use of libraries, packages or modules contained in the programming language core library or from external sources. So what is the issue here....... Too much of anything is umm... bad for you! Most new programmers grow up with little information concerning how most libraries work in the background Cloud computing eliminates the need for  hardware set up and low level machine configurations Modern programmers are mostly concerned with integrating several "black boxes" to create innovative and disruptive solutions - GREAT! "Essentially, we're progressing into an age where no one knows how to operate a manual transmission vehicles" - SAD! Potential issues What happens when the background code in the abstraction "...