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

How to install pycrypto via python pip




pycrypto - Cryptographic modules for Python., it belongs to Classifiers:

- Development Status :: 5 - Production/Stable
- License :: Public Domain
- Operating System :: MacOS
- Operating System :: MacOS :: MacOS X
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Operating System :: Unix
- Programming Language :: Python :: 2
- Topic :: Security
- Topic :: Security :: Cryptography

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



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_pycrypto_env

- Active the virtual environment

test_pycrypto_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_pycrypto_env

- Active the virtual environment

source test_pycrypto_env/bin/active


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

To install pycrypto on Windows(CMD):

py -m pip install pycrypto

To install pycrypto on Unix/macOs:

pip install pycrypto


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

Example:

pip install pycrypto==1.9a2                                                        pre-release


Please see the version list below table:

VersionReleased dateCommand
pycrypto 2.6.12013-10-17T16:23:44Windows:

py -m pip install pycrypto==2.6.1

Unix/macOs:

pip install pycrypto==2.6.1

pycrypto 2.62012-05-24T13:08:25Windows:

py -m pip install pycrypto==2.6

Unix/macOs:

pip install pycrypto==2.6

pycrypto 2.52012-01-13T17:29:48Windows:

py -m pip install pycrypto==2.5

Unix/macOs:

pip install pycrypto==2.5

pycrypto 2.4.12011-11-04T19:29:58Windows:

py -m pip install pycrypto==2.4.1

Unix/macOs:

pip install pycrypto==2.4.1

pycrypto 2.42011-10-22T19:59:56Windows:

py -m pip install pycrypto==2.4

Unix/macOs:

pip install pycrypto==2.4

pycrypto 2.32010-08-27T04:46:34Windows:

py -m pip install pycrypto==2.3

Unix/macOs:

pip install pycrypto==2.3

pycrypto 2.22010-08-02T21:45:16Windows:

py -m pip install pycrypto==2.2

Unix/macOs:

pip install pycrypto==2.2

pycrypto 2.1.02010-06-11T00:19:52Windows:

py -m pip install pycrypto==2.1.0

Unix/macOs:

pip install pycrypto==2.1.0

pycrypto 2.0.12005-06-14T03:30:43Windows:

py -m pip install pycrypto==2.0.1

Unix/macOs:

pip install pycrypto==2.0.1

pycrypto 2.02004-08-14T13:50:08Windows:

py -m pip install pycrypto==2.0

Unix/macOs:

pip install pycrypto==2.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pycrypto_downloaded_file>

On Unix/macOs:

pip install <path_to_pycrypto_downloaded_file>


List distribution:


Project link:

- Homepage