Skip to content

maxuapro/python_cheatsheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Python Windows + VSC setup cheatsheet

Python install

Check versions

Python

python --version or
python -V
python -VV
py --version

pip

pip --version

Virtual environments

Create:

Create a folder, cd to the folder, then:

python -m venv [virt env name]

This creates a [virt env name]folder containing instance of Python

Activate:

[virt env name]/Scripts/activate

and DEactivate: deactivate and Delete: rm -r [virt env name] (works for bash)

Check out environment

get list of modules: terminal: python then:

help("modules")

*There is a way to see the only list of modules without dependandant modules...

Pipenv

install: pip install --user pipenv After installing pipenv check out if it is connected in Environment variables!!! It may be not. Create a folder / cd to the folder / then:

pipenv shell

this creates an environment with the name of folder along with the Pipfile (like package.json) and activates the environment (does it?) (it does) ! - check out if this activated environment is being used in VSCode 'choose interpreter section'

install modules/packages

install: pipenv install [package name] uninstall: pipenv uninstall [package name] install dev dependencies: pipenv install [package name] --dev see all packages installed + versions pipenv graph

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages