Last active
June 9, 2025 22:49
-
-
Save atodev/4803f0dff2d388788b92c92b0f6fab5c to your computer and use it in GitHub Desktop.
[VENV]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install pyenv if you don't have it | |
brew install pyenv | |
# Install Python 3.11 | |
pyenv install 3.11.9 | |
# Set local Python version for this project | |
pyenv local 3.11.9 | |
# Create a new virtual environment | |
python -m venv .venv | |
source .venv/bin/activate | |
# Upgrade pip and install gliner | |
pip install --upgrade pip | |
pip install gliner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd to your dir | |
virtualenv .venv | |
mac | |
source .venv/bin/activate | |
win | |
conda deactivate | |
.venv/Scripts/activate | |
pip freeze > requirements.txt | |
get rid of conda | |
conda clean -a -y | |
virtualenv -p python3.9 .mem | |
---------------- | |
python3 -m venv .venv | |
source .venv/bin/activate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment