6.10.16

Fixing repository sources in old linux distro [Ubuntu and its forks]

You've decided to run an old linux distro on your machine and you find you can't install anything because of outdated repository information.

sudo apt-get install vlc


Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package vlc



You'll need to edit /etc/apt/sources.list and change 'archive.ubuntu.com' to 'old-releases.ubuntu.com'. This can be achieved with sed.

sudo sed -i -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Then update with sudo apt-get update

You should be able to install new applications from repositories.

[Source.]

5.10.16

BeautifulSoup4 for Python3 on Windows10

ImportError: No module named bs4

In order to run pip install, you need to navigate into the installed python.exe folder which was not c:\Program Files (86) in my case.

Open command prompt and run the following command to reach the installed directory of pip.
cd c:\users\username\appdata\local\programs\python\python35-32\scripts

Note: 'username' needs to be replaced with your username on the computer.

Next, run pip install.

c:\users\~\scripts>pip install beautifulsoup4




Python on Windows 10

First thing you need to do is get the Python installer from Python download page. Some of the binaries and libraries don't function well with 64-bit architecture so the 32-bit (default) installer is preferred.

If you decided to use Python 3.4.1 and above, you won't need to change the System Path Variable as it is integrated during installation.

After installation, just search for python or idle in windows search and you can initiate the Python GUI.


 
Web Statistics