Skip to content

NoumanAhmad448/deep_learning_pytorch_python_computer_vision

Repository files navigation

Python Cheatsheet

Conda

Enlist installed packages in the Env

  1. conda list
  2. conda list pkg_name

Conda Activate/Deactivate Env

  1. Open Anaconda Powershell Prompt
  2. Run Conda init bash
  3. conda activate env_name
  4. conda deactivate

Conda Create Environment - CMD

  1. conda create -n yourenvname python=x.x anaconda
  2. source activate yourenvname
  3. source deactivate
  4. conda install pkg_name

Conda Create Environment - Manual

  1. Go to Anaconda Navigator and Create An Env
  2. Go to Pycharm Setting and Search Interpreter
  3. Choose Create new Interpreter
  4. Select your Env
  5. on Main page, choose edit config
  6. select your path

Conda change the python version

  1. conda install python=3.10

PIP Cheatsheet

  1. pip list
  2. pip uninstall pkg_name
  3. pip show pkg_name

pip create packages file

  1. pip freeze > requirements.txt
  2. pip install -r requirements.txt

Nvidia

  1. !nvidia-smi
  2. !nvcc --version

Installation from Github

  1. install mscoco python api !pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

About

A cheatsheet resource that covers the deep learning libraries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages