Skip to content

abdulrahimpds/portableenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

portableenv

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.

Features

  • 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 virtualenv for ease of use.

Installation

Install portableenv via pip:

pip install portableenv

Usage

Create a Virtual Environment

To create a virtual environment using the embedded Python interpreter, use the following command:

python -m portableenv myenv

This will create a virtual environment named myenv using the embedded Python, Python 3.10.9 by default if not specified.

Specifying a Different Python Version

You can specify a different Python version using the -v or --version option:

python -m portableenv myenv -v 3.11.5

This 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.

Requirements

  • Python 3.7 or higher
  • virtualenv library (automatically installed with this package)
  • Internet connection for the initial download of the embedded Python interpreter

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please fork this repository and submit a pull request with your changes.

Author

Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages