# Upgrading Python and Pip and VirtualEnv on Ubuntu

DevFeed: [Upgrading Python and Pip and VirtualEnv on Ubuntu](<https://devfeed.tech/articles/upgrading-python-and-pip-and-virtualenv-on-ubuntu-28233.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/python/2020/04/03/upgrading-python-and-pip-on-ubuntu.html>)

Author: Fuzzygroup

Published: 2020-04-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [pip](<https://devfeed.tech/topics/pip.md>), [apt](<https://devfeed.tech/topics/apt.md>)

Tags: [apt](<https://devfeed.tech/tags/apt.md>), [install](<https://devfeed.tech/tags/install.md>), [python](<https://devfeed.tech/tags/python.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

A brief tutorial on upgrading Python, pip, and virtualenv on Ubuntu after a Python package installation ends with a segmentation fault.

## Source excerpt

I found myself this morning trying to get a Python stack running on an Ubuntu instance only to hit this crap: Installing collected packages: numpy, pytz, six, python-dateutil, pandas, nltk, pyparsing, cycler, kiwisolver, matplotlib, kafka-python, pyyaml, murmurhash, zipp, importlib-metadata, catalogue, plac, tqdm, setuptools, srsly, cymem, preshed, blis, wasabi, thinc, idna, urllib3, certifi, chardet, requests, spacy, pluggy, attrs, py, more-itertools, wcwidth, packaging, pytest, langdetect, spacy-langdetect, editorconfig, jsbeautifier, docutils, jmespath, botocore, s3transfer, boto3, torch, dataclasses, tokenizers, click, joblib, regex, sacremoses, filelock, sentencepiece, transformers, scipy, scikit-learn, gunicorn, WebOb, firefly-python, pycparser, cffi, zstandard, lefthook, termcolor, fire, redis, sseclient, absl-py, protobuf, markdown, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, tensorboard-plugin-wit, werkzeug, grpcio, wheel, oauthlib, requests-oauthlib, google-auth-oauthlib, tensorboard, future, pytorch-lightning Segmentation fault (core dumped) So I guess it is time to do the Python upgrade dance. Here you go: pip3 install --upgrade pip sudo apt-get update && sudo apt-get upgrade sudo apt-get install python3.7 sudo pip3 install --upgrade virtualenv Stack Overflow References Pip upgrade. Python Upgrade