- Installation guide: https://github.com/psf/black/blob/master/docs/editor_integration.md#pycharmintellij-idea
pip install flake8
- File / Settings / External Tools
- Add
- Name: Flake8
- Description: Flake8
- Program: flake8.exe
- Arguments: --ignore E501,W503
$FilePath$ - Working directory:
$ContentRoot$
- Add
- Tutorial 1: https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html
- Tutorial 2: https://www.jetbrains.com/help/pycharm/creating-a-remote-server-configuration.html
- Create venv:
python -m venv ENV_DIR
- Activate venv:
venv\Scripts\activate.bat
- Verify that python 3 is installed.
python3
# Run Python 3.6.8exit()
# Quit Python
- Create project directory: mkdir
python_project
sudo apt update
sudo apt upgrade
sudo apt-get install python3-venv
sudo apt-get install python python3-pip
cd python_project
- Create virtual environment:
python3 -m venv venv
- Activate virtual environment:
source venv/bin/activate
- Update pip:
python -m pip install --upgrade pip
- (Optional) Install project requirements.
pip install -r requirements.txt
- List installed packages:
pip list
- Update pip:
python get-pip.py
Download get-pip.py - Install requirements from file:
pip install -r requirements.txt
- Install ipykernel (Jupyter Notebooks):
pip install ipykernel
- ipython kernel install --user --name=KERNEL_NAME
- Export requirements to file:
pip freeze > requirements.txt
- Packages compatibility: http://packages.pypy.org/
- Download binaries: https://www.pypy.org/download.html#
- Unzip file
- Rename folder to pypy (just to simplify)
- Move to /pypy
pypy3 -m ensurepip
pypy3 -m pip install -U pip wheel
- Install any package:
pypy3 -m pip install PyYAML
- Installation and usage: https://github.com/Michael-F-Bryan/auto-changelog