- Development Status :: 6 - Mature
- License :: OSI Approved :: Zope Public License
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.5
- Programming Language :: Python :: 3.6
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Programming Language :: Python :: 3.10
- Programming Language :: Python :: Implementation
- Programming Language :: Python :: Implementation :: CPython
- Topic :: Security
When you know about this project and you want to new install RestrictedPython to support your project or you get trouble as ModuleNotFoundError: No module named "RestrictedPython" or ImportError: cannot import name "RestrictedPython" in your project, let follow this tutorial to install RestrictedPython
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 Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_RestrictedPython_env
- Active the virtual environment
test_RestrictedPython_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_RestrictedPython_env
- Active the virtual environment
source test_RestrictedPython_env/bin/active
To install RestrictedPython on Windows(CMD):
py -m pip install RestrictedPython
To install RestrictedPython on Unix/macOs:
pip install RestrictedPython
Example:
pip install RestrictedPython==3.4.2
Please see the version list below table:
Version | Released date | Command |
---|---|---|
RestrictedPython 5.2 | 2021-11-19T13:20:28 | Windows: Unix/macOs:
|
RestrictedPython 5.1 | 2020-10-07T12:19:35 | Windows: Unix/macOs:
|
RestrictedPython 5.0 | 2019-09-03T06:16:39 | Windows: Unix/macOs:
|
RestrictedPython 4.0 | 2019-05-10T09:49:48 | Windows: Unix/macOs:
|
RestrictedPython 3.6.0 | 2010-07-09T17:10:42 | Windows: Unix/macOs:
|
RestrictedPython 3.5.2 | 2010-04-30T17:09:29 | Windows: Unix/macOs:
|
RestrictedPython 3.5.1 | 2009-03-17T16:48:21 | Windows: Unix/macOs:
|
RestrictedPython 3.5.0 | 2009-02-09T18:34:19 | Windows: Unix/macOs:
|
RestrictedPython 3.4.3 | 2008-10-26T05:41:48 | Windows: Unix/macOs:
|
RestrictedPython 3.4.2 | 2007-07-28T09:59:29 | Windows: Unix/macOs:
|
Download the distribution file from RestrictedPython-5.2.tar.gz or the specific RestrictedPython version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_RestrictedPython_downloaded_file>
On Unix/macOs:
pip install <path_to_RestrictedPython_downloaded_file>
List distribution:
Project link: