Technical notes‎ > ‎

Python resources

posted Nov 25, 2014, 6:41 PM by Le Tuan Anh   [ updated Jun 26, 2019, 11:37 PM ]

Milestones

Running Python within the browser

Development tools

What you did
My suggestion
Naked Python or Python with IDLE Anaconda + Spyder (built-in)
Python3 & Notepad++    Anaconda + VS Code

Learning Python

Creating virtual environment for testing

# create a folder to store multiple virtual environments
mkdir ~/.envs

# create a new virtual environment (change mytestenv to your desired name)
python3 -m venv ~/.envs/mytestenv

# activate the environment (do *NOT* forget the dot in front)
. ~/.envs/mytestenv/bin/activate

Easy rite?

Download

3rd libraries

Note: virtualenv and pip should be included in standard python distribution by default. Instead of using wrapper scripts (virtualenv or pip), one should use:

python3 -m venv envfoldername
python -m virtualenv envfoldername
python3 -m pip install packagename
python -m pip install packagename

Useful packages

Installing lxml

# Fedora
sudo dnf install libxml2-devel libxslt-devel python3-devel

# Ubuntu
sudo apt-get install libxml2-dev libxslt-dev python-dev

Advanced topics

Interesting stuff for students of HG7030 class (Natural Language Processing for Linguists)

Ċ
Le Tuan Anh,
Oct 7, 2018, 11:47 PM
Ċ
Le Tuan Anh,
Oct 7, 2018, 11:46 PM
Ċ
Le Tuan Anh,
Nov 25, 2014, 6:49 PM
Ċ
Le Tuan Anh,
Nov 25, 2014, 6:49 PM
Comments