Project

General

Profile

Support #927

Install a Python 3.6 Development Environment on Arch Linux

Added by Daniel Curtis almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development Environment
Target version:
Start date:
03/18/2018
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

This is a guide for setting up a simple development environment for Python 3.6 with virtualenv on Arch Linux.

Prepare the Environment

  • Make sure the system is up to date:
    pacman -Syyuu
    

Install Python

  • Install python and a few dependencies:
    pacman -S python python-{pip,pkgconfig,setuptools,virtualenv}
    
  • Create a non-privileged user to develop with:
    useradd -m -g users -s /bin/bash -c "Python Dev" pydev
    passwd pydev
    

Create Virtualenv

  • Switch to the python dev user:
    su - pydev
    
  • Create a new virtualenv called new_app:
    virtualenv new_app
    
  • Activate the new_app virtualenv to begin using it:
    source ./new_app/bin/activate
    
  • Install or develop the new_app:
    pip install new_app
    
  • When done working in the virtual environment for the moment, deactivate it:
    deactivate
    

Install Atom

  • Install atom editor and the flake8 linter:
    pacman -S atom flake8
    pip install flake8-docstrings
    
  • Open Atom and go to Edit -> Preferences, then select the Editor tab. Scroll down to Tab Length and set the value to 4.
    • Also make sure Soft Tabs option is checked.
  • Install python-language-server:
    pip install python-language-server
    
  • Install the ide-python and linter-flake8 atom packages:
    apm install ide-python linter-flake8
    

Resources

#1

Updated by Daniel Curtis almost 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF