1For apt (Ubuntu, Debian...):
2
3sudo apt-get install python-dev # for python2.x installs
4sudo apt-get install python3-dev # for python3.x installs
5For yum (CentOS, RHEL...):
6
7sudo yum install python-devel # for python2.x installs
8sudo yum install python3-devel # for python3.x installs
9For dnf (Fedora...):
10
11sudo dnf install python2-devel # for python2.x installs
12sudo dnf install python3-devel # for python3.x installs
13For zypper (openSUSE...):
14
15sudo zypper in python-devel # for python2.x installs
16sudo zypper in python3-devel # for python3.x installs
17For apk (Alpine...):
18
19# This is a departure from the normal Alpine naming
20# scheme, which uses py2- and py3- prefixes
21sudo apk add python2-dev # for python2.x installs
22sudo apk add python3-dev # for python3.x installs
23For apt-cyg (Cygwin...):
24
25apt-cyg install python-devel # for python2.x installs
26apt-cyg install python3-devel # for python3.x installs
1os.chdir(r'C:\Folder')
2open('file.txt') #relative path, looks inside the current working directory
3