Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install fortune via python pip




fortune - Python version of old BSD Unix fortune program, it belongs to Classifiers:

- Intended Audience :: End Users/Desktop
- License :: OSI Approved :: BSD License
- Topic :: Games/Entertainment
- Topic :: Text Processing
- Topic :: Text Processing :: Filters

When you know about this project and you want to new install fortune to support your project or you get trouble as ModuleNotFoundError: No module named "fortune" or ImportError: cannot import name "fortune" in your project, let follow this tutorial to install fortune



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_fortune_env

- Active the virtual environment

test_fortune_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_fortune_env

- Active the virtual environment

source test_fortune_env/bin/active


Step 2: OK, now, let flow below content to start the installation fortune

To install fortune on Windows(CMD):

py -m pip install fortune

To install fortune on Unix/macOs:

pip install fortune


Step 3: If you want to install a specific fortune version, add ==<fortune version> to the end command line

Example:

pip install fortune==0.4


Please see the version list below table:

VersionReleased dateCommand
fortune 1.1.02019-03-07T20:59:56Windows:

py -m pip install fortune==1.1.0

Unix/macOs:

pip install fortune==1.1.0

fortune 1.0.12015-01-18T17:16:12Windows:

py -m pip install fortune==1.0.1

Unix/macOs:

pip install fortune==1.0.1

fortune 1.02011-03-15T02:40:50Windows:

py -m pip install fortune==1.0

Unix/macOs:

pip install fortune==1.0

fortune 0.5.22011-01-12T04:41:31Windows:

py -m pip install fortune==0.5.2

Unix/macOs:

pip install fortune==0.5.2

fortune 0.5.12010-03-29T01:30:35Windows:

py -m pip install fortune==0.5.1

Unix/macOs:

pip install fortune==0.5.1

fortune 0.52010-03-22T15:50:16Windows:

py -m pip install fortune==0.5

Unix/macOs:

pip install fortune==0.5

fortune 0.42008-05-21T15:51:22Windows:

py -m pip install fortune==0.4

Unix/macOs:

pip install fortune==0.4


Step 4: Otherwise, you can install fortune from local archives:

Download the distribution file from fortune-1.1.0.tar.gz or the specific fortune version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_fortune_downloaded_file>

On Unix/macOs:

pip install <path_to_fortune_downloaded_file>


List distribution:

- fortune-0.5.1.tar.gz
- fortune-0.5.1.zip
- fortune-1.0.zip
- fortune-1.1.0-py2.py3-none-any.whl
- fortune-1.1.0.tar.gz


Project link:

- Homepage