Pen is a tool for managing Python environments with different Python versions. (v0.4.0)
Currently, this software supports only Linux environments. Windows and macOS are not supported at this time. However, macOS support is under development and will be available soon.
Supported Shells:
Run this in your terminal:
bash <(curl -sL "https://raw.githubusercontent.com/azomDev/pen/main/files/unix/install.sh")
For shells other than Bash, change ~/.bashrc
to the according config file for your shell (for example: ~/.zshrc
for Zsh).
Clone the repository and navigate to the directory:
git clone https://github.com/azomDev/pen.git
cd pen
Build the project:
cargo build --release
Set up the environment:
mkdir ~/.pen
mv target/release/pen ~/.pen/core
mv files/unix/main.sh ~/.pen/main.sh
printf '\nalias pen=". $HOME/.pen/main.sh"\n' >> ~/.bashrc
Clean up and apply changes:
cd ..
rm -rf pen/
source ~/.bashrc
Command Format: pen <COMMAND>
create
(c
): Create a virtual environment with a specific Python version.
pen create 3.9.1
install
(i
): Install a specific Python version.
pen install 3.8.5
list
(l
): List all installed Python versions.
pen list
delete
: Delete the virtual environment in the current directory or a specific Python version.
pen delete
pen delete 3.8.5
activate
(a
): Activate the virtual environment.
pen activate
deactivate
(d
): Deactivate the current virtual environment.
pen deactivate
update
: Update Pen to the latest version.
pen update
uninstall
: Uninstall Pen (does not remove virtual environments).
pen uninstall
help
: Show help for Pen or a specific command.
pen
pen help
pen help create
-h
, --help
: Print help information.-V
, --version
: Print the version of Pen.Contributions are welcome! Please open an issue or submit a pull request on GitHub for any bugs or suggestions. Feel free to comment on any issue if you're interested in contributing.
This project is licensed under the MIT License. See the LICENSE file for details.