pip install --upgrade package_name
2024-07-29
Python - Check if a given library is installed or not
python -c "import library_name; print(librar_name.__file__)"
Python - Automatic installation of all pip packages in requirements.txt
pip install -r pip_requirements.txt
Python - Anaconda automatic installation of all requirements
conda install --file conda_requirements.txt
Python - Conda active environment check and setup
conda activate parser3
which python
python -m site
which -a python
Python - Create automatic list of pip packages, automatic requirements.txt file for existing project
pip freeze > pip_requirements.txt
Python - Create conda installed packages file automatically
cd ~/path_to/your_project/
conda list --export > conda_requirements.txt
Subscribe to:
Posts (Atom)