portableenv is a Python CLI tool that allows you to create virtual environments using an embedded Python interpreter. This makes it easy to manage isolated Python environments without relying on the system-wide Python installation.
- Seamless Virtual Environment Creation: Creates virtual environments using the embedded Python interpreter, ensuring portability and isolation from system-wide installations.
- Simple CLI Interface: Provides a command-line interface similar to
virtualenvfor ease of use.
Install portableenv via pip:
pip install portableenvTo create a virtual environment using the embedded Python interpreter, use the following command:
python -m portableenv myenvThis will create a virtual environment named myenv using the embedded Python, Python 3.10.9 by default if not specified.
You can specify a different Python version using the -v or --version option:
python -m portableenv myenv -v 3.11.5This will download the embedded Python version 3.11.5 from python.org and use it to create the virtual environment.
The tool downloads the embedded Python distribution directly from python.org and configures it automatically. It also installs and updates pip to the latest version in both the embedded Python and the created virtual environment, ensuring you have the most up-to-date package manager without seeing upgrade notices when installing packages.
- Python 3.7 or higher
virtualenvlibrary (automatically installed with this package)- Internet connection for the initial download of the embedded Python interpreter
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please fork this repository and submit a pull request with your changes.