conda vs venv
conda needs a environment.yaml file to determine the packages needed
python3 -m venv .venv
source myvenv/bin/activate
which python
pip install -r /Users/requirements.txt
pip3 uninstall -r requirements.txt -y
The only solution I found was to delete theĀ venv
Ā and recreate it. I followed these steps but Iāll provide a brief summary for Windows:
- Activate your virtualenv. Go to the parent folder where your Virtual Environment is located and runĀ
venv\scripts\activate
. Keep in mind that the first name āvenvā can vary. - Create a requirements.txt file.Ā
pip freeze requirements.txt
deactivate
Ā to exit the venvrm venv
Ā to delete the venvpy -m venv venv
Ā to create a new onepip install -r requirements.txt
Ā to install the requirements.
to make sure install all the packages in requirements.txt
cat requirements.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 python -m pip install