Archive

Posts Tagged ‘install’

Anaconda3, Windows, command-line arguments

April 16, 2017 Leave a comment

Problem
I installed Anaconda3 on Windows 7, but when I wanted to pass a command-line argument to a script, the script didn’t receive the parameter(s). The command-line arguments were simply ignored.

Solution
I found the solution here. This is a blog post from 2010. This issue is still unresolved…

In short: open the registry editor (regedit), find the key HKEY_CLASSES_ROOT\py_auto_file\shell\open\command , and append the string “%*” (without quotes) to the end of the entry. It should look similar to this:

"C:\Anaconda3\python.exe" "%1" %*
Categories: python, windows Tags: , ,

Installing a Flask webapp on a Digital Ocean (or Linode, etc.) Ubuntu box

March 26, 2016 Leave a comment

How to install a Flask webapp on a Digital Ocean VPS that has Ubuntu Linux on it: https://github.com/jabbalaci/DigitalOceanFlask.

This writing of mine appeared in Import Python Weekly Newsletter No. 65.

Getting started with Django on a DigitalOcean VPS

Django is a high-level Python framework for developing web applications rapidly. DigitalOcean’s Django One-Click app quickly deploys a preconfigured development environment to your VPS employing Django, Nginx, Gunicorn, and Postgres.

More info here.

Qt development under Windows with Python using PySide

January 9, 2013 Leave a comment

Install PySide here: http://qt-project.org/wiki/PySideDownloads. Follow the link “Microsoft Windows” and download the installer.

Categories: python, windows Tags: , ,

install gevent

sudo apt-get install libevent-dev python-all-dev
sudo pip install gevent 

Nice tutorial on gevent: here.

Categories: python, ubuntu Tags: , ,

Install NumPy and SciPy on Ubuntu

November 9, 2011 9 comments

On Ubuntu 11.10, here is what I had to do:

sudo pip install numpy
sudo apt-get install libatlas-base-dev gfortran
sudo pip install scipy
sudo pip install matplotlib   # recommended

Line 2 was necessary for SciPy, otherwise it was complaining that BLAS and a Fortran compiler were missing. Note that gfortran replaces the package g77.

Categories: python, ubuntu Tags: , , , ,

Extra packages in PyPI

March 16, 2011 Leave a comment

The Python Package Index (PyPI) is a repository of software for the Python programming language. There are currently 13,756 packages here…
…to use a package from this index either “pip install package” or download, unpack and “python setup.py install” it.
” (source)

The easiest way is to use the pip installer:

sudo pip install <package_name>
Categories: python Tags: , , ,