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

How to install bson-extra via python pip




bson-extra - Provides hooks for supplying extra type handling for bson objects. Primarily to give full timezone support for bson.dumps and bson.loads, it belongs to Classifiers:

- License :: OSI Approved :: GNU Affero General Public License v3

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



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_bson-extra_env

- Active the virtual environment

test_bson-extra_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_bson-extra_env

- Active the virtual environment

source test_bson-extra_env/bin/active


Step 2: OK, now, let flow below content to start the installation bson-extra

To install bson-extra on Windows(CMD):

py -m pip install bson-extra

To install bson-extra on Unix/macOs:

pip install bson-extra


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

Example:

pip install bson-extra==0.0.3


Please see the version list below table:

VersionReleased dateCommand
bson-extra 0.0.42021-12-03T11:23:18Windows:

py -m pip install bson-extra==0.0.4

Unix/macOs:

pip install bson-extra==0.0.4

bson-extra 0.0.32020-07-14T12:11:39Windows:

py -m pip install bson-extra==0.0.3

Unix/macOs:

pip install bson-extra==0.0.3


Step 4: Otherwise, you can install bson-extra from local archives:

Download the distribution file from bson_extra-0.0.4.tar.gz or the specific bson-extra version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_bson-extra_downloaded_file>

On Unix/macOs:

pip install <path_to_bson-extra_downloaded_file>


List distribution:

- bson_extra-0.0.3-py3-none-any.whl
- bson_extra-0.0.3.tar.gz
- bson_extra-0.0.4-py3-none-any.whl
- bson_extra-0.0.4.tar.gz


Project link: